diff options
| author | uint23 <72694427+uint23@users.noreply.github.com> | 2025-05-23 21:34:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-23 21:34:29 +0100 |
| commit | fa5d772cc32c3a8a20070dfc45c03695d5dc8c7a (patch) | |
| tree | 6f3921f05e249209b1da32e3d35436042ccb49d2 /src/sxwm.c | |
| parent | 70dea221c7ab67099a1f65fb93e456cd85ef9dc3 (diff) | |
| parent | fabde67fac21df45422c5c29c8d0bf2c95182d26 (diff) | |
Merge pull request #44 from bobthehuge/main
Change focus after setting client monitor
Diffstat (limited to 'src/sxwm.c')
| -rw-r--r-- | src/sxwm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -155,10 +155,6 @@ Client *add_client(Window w, int ws) tail->next = c; } - if (ws == current_ws && !focused) { - focused = c; - } - open_windows++; XSelectInput(dpy, w, EnterWindowMask | LeaveWindowMask | FocusChangeMask | PropertyChangeMask | StructureNotifyMask); @@ -197,6 +193,10 @@ Client *add_client(Window w, int ws) c->floating = True; } + if (ws == current_ws && !focused) { + focused = c; + } + XRaiseWindow(dpy, w); return c; } |
