fix a minor bug

This commit is contained in:
fdev31 2023-04-30 23:23:39 +02:00
parent 4a0cb5fb8f
commit 96d5f23ea5

View file

@ -267,10 +267,11 @@ class Extension(Plugin):
if ( if (
animation_type and uid in self.focused_window_tracking animation_type and uid in self.focused_window_tracking
): # focus got lost when animating ): # focus got lost when animating
if not autohide: if not autohide and "address" in self.focused_window_tracking[uid]:
await hyprctl( await hyprctl(
f"focuswindow address:{self.focused_window_tracking[uid]['address']}" f"focuswindow address:{self.focused_window_tracking[uid]['address']}"
) )
del self.focused_window_tracking[uid]
async def run_show(self, uid, force=False) -> None: async def run_show(self, uid, force=False) -> None:
"""<name> shows scratchpad "name" """ """<name> shows scratchpad "name" """