diff options
| author | Abhinav <abhinav.prsai@gmail.com> | 2025-06-24 16:59:45 +0100 |
|---|---|---|
| committer | Abhinav <abhinav.prsai@gmail.com> | 2025-06-24 17:00:31 +0100 |
| commit | ca52808cf5d1928a9a8f263c4c3210e83d80391c (patch) | |
| tree | 06197250a50a807a5bd19be9c6c2e52f0e245c60 | |
| parent | 8418960055da3337e767afb49f59c7eec229dc3c (diff) | |
fix scratchpad focused on toggle off
scratchpad now is out of focus when is toggled off so no problems where
you accidentaly close it
| -rw-r--r-- | src/sxwm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2494,6 +2494,9 @@ void toggle_scratchpad(int n) if (scratchpads[n].enabled) { XUnmapWindow(dpy, scratchpads[n].client->win); scratchpads[n].enabled = False; + focus_prev(); + send_wm_take_focus(focused->win); + update_borders(); } else { XMapWindow(dpy, scratchpads[n].client->win); |
