Skip to content

Commit 58f21bc

Browse files
mmstickjackpot51
authored andcommitted
fix: Alt+Tab to stacked window has wrong window focused
1 parent 6eb8420 commit 58f21bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,7 @@ export class Ext extends Ecs.System<ExtEvent> {
752752
this.restack()
753753

754754
const activate_window = (window: Window.ShellWindow) => {
755+
this.on_focused(window)
755756
window.activate(true)
756757
this.prev_focused = [null, window.entity]
757758
}
@@ -762,6 +763,7 @@ export class Ext extends Ecs.System<ExtEvent> {
762763
return
763764
}
764765

766+
765767
// Activate the last-active window on workspace.
766768
const workspace_id = this.active_workspace()
767769
const active = this.workspace_active.get(workspace_id)

0 commit comments

Comments
 (0)