summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authoroga <oga>2008-06-18 19:09:12 +0000
committeroga <oga>2008-06-18 19:09:12 +0000
commit2bddbe12f46962e069370569c90f09e621cdc559 (patch)
treed54c671c0133be229b391df20b809a499f690287 /xevents.c
parent0ba60f0b94a6097a33aa434ade04bda619e6e33b (diff)
downloadcwm-2bddbe12f46962e069370569c90f09e621cdc559.tar.gz
cwm-2bddbe12f46962e069370569c90f09e621cdc559.tar.xz
cwm-2bddbe12f46962e069370569c90f09e621cdc559.zip
Revert previous "fix" it introduces new issues of its own.
The problem that's causing us to lose windows is that rapid hiding and
unhiding causes a backlog of X events, so we lose track of client state,
and delete cc->pwin when we should not. A proper fix will arrive when it's been
worked out.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xevents.c b/xevents.c
index b4f068c..0dbf99a 100644
--- a/xevents.c
+++ b/xevents.c
@@ -70,7 +70,7 @@ xev_handle_unmapnotify(struct xevent *xev, XEvent *ee)
 	struct client_ctx *cc;
 
 	if ((cc = client_find(e->window)) != NULL)
-		xu_setstate(cc, WithdrawnState);
+		client_delete(cc, e->send_event, 0);
 
 	xev_register(xev);
 }