about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-06-19 09:08:15 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-06-19 09:08:15 +0200
commit52250e7c1e54d0ec8cd7d4667ba34137fcfef908 (patch)
tree1d1d6ab668a7062ee1348249747b8e000d38ae19 /event.c
parent51a94a2f147e490101f33b276c83389e48307425 (diff)
downloaddwm-52250e7c1e54d0ec8cd7d4667ba34137fcfef908.tar.gz
please recheck this patch with Mathematica from Wolfram Research - lemme know if it fixes the geyish blob window bug
Diffstat (limited to 'event.c')
-rw-r--r--event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/event.c b/event.c
index ad4e271..9897640 100644
--- a/event.c
+++ b/event.c
@@ -301,7 +301,8 @@ maprequest(XEvent *e) {
 
 	if(!XGetWindowAttributes(dpy, ev->window, &wa))
 		return;
-	if(wa.override_redirect)
+	fprintf(stderr, "does the window suck? %s\n", wa.map_state == IsViewable ? "no" : "yes");
+	if(wa.override_redirect || wa.map_state != IsViewable)
 		return;
 	if(!getclient(ev->window))
 		manage(ev->window, &wa);
58' href='#n158'>158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202