fix: when new items enter the tabbed view they should be the active window

This commit is contained in:
Lucas Oskorep committed 2026-03-02 11:26:28 -05:00
1 parent 400ce3a77c
commit 42c1e6731e
3 files changed
+25

No files matched your search

+4
View File
@@ -504,6 +504,10 @@ export default class WindowManager implements IWindowManager {
if (focusWindow) {
this._activeWindowId = focusWindow.get_id();
Logger.debug(`Active window changed to: ${this._activeWindowId} (${focusWindow.get_title()})`);
// If the focused window is inside a tabbed container, make it the active tab
const monId = focusWindow.get_monitor();
this._monitors.get(monId)?.focusWindowTab(this._activeWindowId);
} else {
this._activeWindowId = null;
Logger.debug('No active window');