From 96d5f23ea59bd133878383c7385bbdd24389aa32 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Sun, 30 Apr 2023 23:23:39 +0200 Subject: [PATCH] fix a minor bug --- pyprland/plugins/scratchpads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyprland/plugins/scratchpads.py b/pyprland/plugins/scratchpads.py index fd2e1a3..ed95b29 100644 --- a/pyprland/plugins/scratchpads.py +++ b/pyprland/plugins/scratchpads.py @@ -267,10 +267,11 @@ class Extension(Plugin): if ( animation_type and uid in self.focused_window_tracking ): # focus got lost when animating - if not autohide: + if not autohide and "address" in self.focused_window_tracking[uid]: await hyprctl( f"focuswindow address:{self.focused_window_tracking[uid]['address']}" ) + del self.focused_window_tracking[uid] async def run_show(self, uid, force=False) -> None: """ shows scratchpad "name" """