Skip to content

Commit

Permalink
fix: Don't use last_focused state in handling notify::focus-window
Browse files Browse the repository at this point in the history
Fixes #712
Fixes #970
  • Loading branch information
lhotari authored and mmstick committed Jun 18, 2021
1 parent 4c69349 commit 93634d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ export class Ext extends Ecs.System<ExtEvent> {
if (screenShield?.locked) this.update_display_configuration(false);

this.connect(display, 'notify::focus-window', () => {
const window = this.focus_window()
const window = this.get_window(display.get_focus_window())
if (window) this.on_focused(window)
return false
});
Expand Down

0 comments on commit 93634d6

Please sign in to comment.