Commit Diff


commit - e03248a4d5feaaacb130416be6e467a04de81f78
commit + 786f6e2a6f8466ad94706781bc93bc6eb6e69512
blob - b3c43eeb23a693a4e734a945cdf3aa31a6d51b86
blob + c0c3b9b416059a37275c433671f527d36c568c76
--- dwm.c
+++ dwm.c
@@ -1780,6 +1780,7 @@ unmanage(Client *c, int destroyed)
 		wc.border_width = c->oldbw;
 		XGrabServer(dpy); /* avoid race conditions */
 		XSetErrorHandler(xerrordummy);
+		XSelectInput(dpy, c->win, NoEventMask);
 		XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); /* restore border */
 		XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
 		setclientstate(c, WithdrawnState);