[hackers] [dwm] applied Connors and Valentins patch to improve the unmapnotify handling of broken clients || garbeam

From: <hg_AT_suckless.org>
Date: Mon, 8 Aug 2011 18:55:11 +0200 (CEST)

changeset: 1574:edf3fc1e74b9
tag: tip
user: garbeam_AT_gmail.com
date: Mon Aug 08 16:55:06 2011 +0000
files: dwm.c
description:
applied Connors and Valentins patch to improve the unmapnotify handling of broken clients

diff -r 131d4f6a8a1e -r edf3fc1e74b9 dwm.c
--- a/dwm.c Fri Jul 29 20:01:22 2011 +0200
+++ b/dwm.c Mon Aug 08 16:55:06 2011 +0000
@@ -1761,8 +1761,12 @@
         Client *c;
         XUnmapEvent *ev = &e->xunmap;
 
- if((c = wintoclient(ev->window)))
- unmanage(c, False);
+ if((c = wintoclient(ev->window))) {
+ if(ev->send_event)
+ setclientstate(c, WithdrawnState);
+ else
+ unmanage(c, False);
+ }
 }
 
 void
Received on Mon Aug 08 2011 - 18:55:11 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 08 2011 - 19:00:10 CEST