Mercurial > gbwm
diff 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 |
line wrap: on
line diff
--- a/gbwm.c Tue Oct 14 18:09:23 2025 +0500 +++ b/gbwm.c Tue Oct 14 18:10:20 2025 +0500 @@ -126,8 +126,9 @@ XChangeProperty(dpy, c->win, wm_state, wm_state, 32, PropModeReplace, (unsigned char *)data, 2); XMapWindow(dpy, c->win); + focus(c, 0); + arrange(); focus(c, 1); - arrange(); } static void removeclient(Window win) {