what did i do here?

This commit is contained in:
Nishi 2026-02-28 17:41:45 +09:00
commit 0c55cfb292
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -541,8 +541,6 @@ void loop_x(void) {
XAllowEvents(xdisplay, ReplayPointer, CurrentTime);
} else if(ev.type == FocusIn && ev.xfocus.window != focus) {
set_focus(focus);
} else if(ev.type == FocusOut && focus != None) {
set_focus(focus);
} else if(ev.type == ConfigureRequest) {
XWindowChanges xwc;
int i;
@ -663,6 +661,9 @@ void loop_x(void) {
if(ret) continue;
if(i != arrlen(windows)) {
XWindowAttributes xwa;
int rev;
Window cfocus;
if(!XGetWindowAttributes(xdisplay, windows[i].client, &xwa)) {
wm_destroy(windows[i].frame);
arrdel(windows, i);
@ -699,6 +700,7 @@ void loop_x(void) {
}
XUngrabServer(xdisplay);
XMapWindow(xdisplay, windows[i].client);
set_focus(windows[i].client);
continue;