From 2bddbe12f46962e069370569c90f09e621cdc559 Mon Sep 17 00:00:00 2001 From: oga Date: Wed, 18 Jun 2008 19:09:12 +0000 Subject: [PATCH] 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. --- xevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }