fix: tab bars showing when apps are fullscreen on same monitor
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user