Skip to content

Commit 93634d6

Browse files
lhotarimmstick
authored andcommitted
fix: Don't use last_focused state in handling notify::focus-window
Fixes #712 Fixes #970
1 parent 4c69349 commit 93634d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ export class Ext extends Ecs.System<ExtEvent> {
17461746
if (screenShield?.locked) this.update_display_configuration(false);
17471747

17481748
this.connect(display, 'notify::focus-window', () => {
1749-
const window = this.focus_window()
1749+
const window = this.get_window(display.get_focus_window())
17501750
if (window) this.on_focused(window)
17511751
return false
17521752
});

0 commit comments

Comments
 (0)