Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions lib/extension/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ export class WindowManager extends GObject.Object {
let wmId = metaWindow.get_id();

for (let override of overrides) {
// if the window is already floating
if (override.wmClass === wmClass && override.mode === "float" && !override.wmTitle) return;
// ignore already floating and find correct window instance
if (override.wmClass === wmClass && override.mode === "float" && !override.wmTitle) {
if (withWmId && override.wmId !== wmId) {
continue;
}
return;
}
}
overrides.push({
wmClass: wmClass,
Expand All @@ -115,6 +120,7 @@ export class WindowManager extends GObject.Object {
// Save the updated overrides back to the ConfigManager
currentProps.overrides = overrides;
this.ext.configMgr.windowProps = currentProps;
this.windowProps = currentProps;
}

removeFloatOverride(metaWindow, withWmId) {
Expand All @@ -135,6 +141,7 @@ export class WindowManager extends GObject.Object {
// Save the updated overrides back to the ConfigManager
currentProps.overrides = overrides;
this.ext.configMgr.windowProps = currentProps;
this.windowProps = currentProps;
}

toggleFloatingMode(action, metaWindow) {
Expand Down