From 366ec19a73b308da6d562f7e12d901ce085502e5 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Sat, 29 Apr 2023 23:41:38 +0200 Subject: [PATCH] more reliable tracking --- pyprland/plugins/scratchpads.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyprland/plugins/scratchpads.py b/pyprland/plugins/scratchpads.py index 69c7d98..3d63391 100644 --- a/pyprland/plugins/scratchpads.py +++ b/pyprland/plugins/scratchpads.py @@ -268,7 +268,9 @@ class Extension(Plugin): if ( animation_type and uid in self.focused_window_tracking ): # focus got lost when animating - await hyprctl(f"focuswindow pid:{self.focused_window_tracking[uid]['pid']}") + await hyprctl( + f"focuswindow address:{self.focused_window_tracking[uid]['address']}" + ) async def run_show(self, uid, force=False) -> None: """ shows scratchpad "name" """