fix: tab bars showing when apps are fullscreen on same monitor

This commit is contained in:
Lucas Oskorep
2026-02-26 22:06:30 -05:00
parent c1e597579f
commit 2ab3822cb6

View File

@@ -103,6 +103,7 @@ export default class WindowManager implements IWindowManager {
}), }),
global.display.connect("in-fullscreen-changed", () => { global.display.connect("in-fullscreen-changed", () => {
Logger.log("IN FULL SCREEN CHANGED"); Logger.log("IN FULL SCREEN CHANGED");
this._syncFullscreenTabBars();
}), }),
); );
@@ -434,6 +435,16 @@ export default class WindowManager implements IWindowManager {
} }
} }
private _syncFullscreenTabBars(): void {
for (const [monitorId, monitor] of this._monitors.entries()) {
if (global.display.get_monitor_in_fullscreen(monitorId)) {
monitor.hideTabBars();
} else if (!this._showingOverview) {
monitor.showTabBars();
}
}
}
_tileMonitors(): void { _tileMonitors(): void {
this._isTiling = true; this._isTiling = true;
try { try {