event.c
changeset 30 2e0fb4130bfb
parent 29 8ad86d0a6a53
child 31 386649deb651
--- a/event.c	Wed Jul 12 17:17:15 2006 +0200
+++ b/event.c	Wed Jul 12 17:50:31 2006 +0200
@@ -186,11 +186,11 @@
 	if(ev->state == PropertyDelete)
 		return; /* ignore */
 
-	if(ev->atom == wm_atom[WMProtocols]) {
-		c->proto = win_proto(c->win);
-		return;
-	}
 	if((c = getclient(ev->window))) {
+		if(ev->atom == wm_atom[WMProtocols]) {
+			c->proto = win_proto(c->win);
+			return;
+		}
 		switch (ev->atom) {
 			default: break;
 			case XA_WM_TRANSIENT_FOR: