diff options
| -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; } |
