more reliable tracking

This commit is contained in:
fdev31 2023-04-29 23:41:38 +02:00
parent 2441385449
commit 366ec19a73

View file

@ -268,7 +268,9 @@ 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
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: async def run_show(self, uid, force=False) -> None:
"""<name> shows scratchpad "name" """ """<name> shows scratchpad "name" """