Mercurial > gbwm
comparison gbwm.c @ 13:7d783901ff7d
fix cursor warp by arranging window before focusing
author | Atarwn Gard <a@qwa.su> |
---|---|
date | Tue, 14 Oct 2025 18:10:20 +0500 |
parents | 1f03f3ca1a96 |
children | 9a4656899644 |
comparison
equal
deleted
inserted
replaced
12:1f03f3ca1a96 | 13:7d783901ff7d |
---|---|
124 // Set WM_STATE | 124 // Set WM_STATE |
125 long data[] = { NormalState, None }; | 125 long data[] = { NormalState, None }; |
126 XChangeProperty(dpy, c->win, wm_state, wm_state, 32, PropModeReplace, (unsigned char *)data, 2); | 126 XChangeProperty(dpy, c->win, wm_state, wm_state, 32, PropModeReplace, (unsigned char *)data, 2); |
127 | 127 |
128 XMapWindow(dpy, c->win); | 128 XMapWindow(dpy, c->win); |
129 focus(c, 0); | |
130 arrange(); | |
129 focus(c, 1); | 131 focus(c, 1); |
130 arrange(); | |
131 } | 132 } |
132 | 133 |
133 static void removeclient(Window win) { | 134 static void removeclient(Window win) { |
134 Client *c, **prev; | 135 Client *c, **prev; |
135 for (prev = &workspaces[current_ws]; (c = *prev); prev = &c->next) { | 136 for (prev = &workspaces[current_ws]; (c = *prev); prev = &c->next) { |