Commit 8e0cfbd
Jaden
drawers: restore focus to previous window on dismiss
When a drawer (launcher, session, sidebar, dashboard) is opened, the
HyprlandFocusGrab takes keyboard focus away from the active window.
On dismiss, focus was not restored, causing Hyprland to fall back to
focusing whatever window is under the mouse cursor.
This stores the active window address when the focus grab activates
and dispatches focuswindow to restore it when the grab deactivates.1 parent 25515fd commit 8e0cfbd
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
96 | 108 | | |
97 | 109 | | |
98 | 110 | | |
| |||
0 commit comments