From 93634d68293c59b37830410ea45cc6b5bc1461ef Mon Sep 17 00:00:00 2001 From: Lari Hotari Date: Fri, 18 Jun 2021 14:48:13 +0300 Subject: [PATCH] fix: Don't use last_focused state in handling notify::focus-window Fixes #712 Fixes #970 --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index ac18c08c..21ec8c43 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1746,7 +1746,7 @@ export class Ext extends Ecs.System { 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 });