diff options
| author | bobthehuge <bobthehuge@protonmail.com> | 2025-05-23 01:20:49 +0200 |
|---|---|---|
| committer | bobthehuge <bobthehuge@protonmail.com> | 2025-05-23 01:20:49 +0200 |
| commit | fabde67fac21df45422c5c29c8d0bf2c95182d26 (patch) | |
| tree | 6f3921f05e249209b1da32e3d35436042ccb49d2 | |
| parent | 70dea221c7ab67099a1f65fb93e456cd85ef9dc3 (diff) | |
change focus after setting client monitor
| -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; } |
