diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-09 20:47:12 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-09 20:47:12 +0100 |
| commit | ae94e849a03122d8a4a2356e375cec9804b3e91a (patch) | |
| tree | ff2e6be69170cc27aed916c35696dec8b3099d27 /deckit/modules | |
| parent | 6465ffceeef5c3df404972bf4eaa1b24e451a7c4 (diff) | |
| download | deck-it-ae94e849a03122d8a4a2356e375cec9804b3e91a.tar.gz deck-it-ae94e849a03122d8a4a2356e375cec9804b3e91a.zip | |
fix: window focus and close must call hl.dispatch
Diffstat (limited to 'deckit/modules')
| -rw-r--r-- | deckit/modules/windows.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deckit/modules/windows.py b/deckit/modules/windows.py index 69b1210..67dbbd2 100644 --- a/deckit/modules/windows.py +++ b/deckit/modules/windows.py @@ -83,7 +83,7 @@ def workspace_cmd(n: int, lua: bool): def window_cmd(verb: str, addr: str, lua: bool): if lua: dsp = "hl.dsp.focus" if verb == "focus" else "hl.dsp.window.close" - return ["hyprctl", "eval", f'{dsp}({{window = "address:{addr}"}})'] + return ["hyprctl", "eval", f'hl.dispatch({dsp}({{window = "address:{addr}"}}))'] return ["hyprctl", "dispatch", "focuswindow" if verb == "focus" else "closewindow", f"address:{addr}"] |
