add condition for client_remove

This commit is contained in:
arnault 2012-02-11 00:30:58 +01:00
parent 652b31dc0f
commit 8e4740854b

View File

@ -311,7 +311,8 @@ event_unmapnotify(XEvent *e)
if((c = client_gb_win(ev->window))
&& ev->send_event
&& c->flags & CLIENT_MAPPED)
&& c->flags & CLIENT_MAPPED
&& !(c->flags & CLIENT_DYING))
client_remove(c);
else if((s = systray_find(ev->window)))
{