From c5162f62e2f13014619ca089bda57643e12d5480 Mon Sep 17 00:00:00 2001 From: Gabriel Fiamoncini <123760117+GFiamoncini@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:57:25 -0300 Subject: [PATCH] Update Windows-toggle-float After PR #484, the window-toggle-float and window-toggle-always-float shortcuts stopped working. The root cause was that addFloatOverride and removeFloatOverride save overrides via configMgr (disk), but isFloatingExempt reads from this.windowProps (in-memory cache) which was never refreshed after the save. Fixes #492, #495" --- lib/extension/window.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/extension/window.js b/lib/extension/window.js index 0509dcc..56e9c7c 100644 --- a/lib/extension/window.js +++ b/lib/extension/window.js @@ -154,6 +154,7 @@ export class WindowManager extends GObject.Object { if (floatingExempt) { this.removeFloatOverride(metaWindow, withWmId); + this.windowProps = this.ext.configMgr.windowProps; if (!this.isActiveWindowWorkspaceTiled(metaWindow)) { nodeWindow.mode = WINDOW_MODES.FLOAT; } else { @@ -161,6 +162,7 @@ export class WindowManager extends GObject.Object { } } else { this.addFloatOverride(metaWindow, withWmId); + this.windowProps = this.ext.configMgr.windowProps; nodeWindow.mode = WINDOW_MODES.FLOAT; } }