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

This commit is contained in:
Lucas Oskorep
2026-03-02 11:26:28 -05:00
parent 6690eaf007
commit 5dd43a681e
3 changed files with 25 additions and 0 deletions

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');