This commit is contained in:
Nishi 2025-11-22 13:02:24 +09:00
commit a48d6cd97f
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -133,7 +133,8 @@ void loop_x(void) {
MwNinverted, 0,
NULL);
XSelectInput(xdisplay, w.client, StructureNotifyMask);
XGetWindowAttributes(xdisplay, w.client, &xwa);
XSelectInput(xdisplay, w.client, xwa.your_event_mask | StructureNotifyMask);
arrput(frames, w);
pthread_mutex_unlock(&xmutex);
@ -146,7 +147,7 @@ void loop_x(void) {
if(frames[i].client == ev.xunmap.window) {
MwDestroyWidget(frames[i].frame);
arrdel(frames, i);
c = 1;
if(i == 0) c = 1;
break;
}
}