Revert "Handle synthetic UnmapNotify events"

This reverts commit 8e672897cb.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Uli Schlachter 2009-12-28 19:14:46 +01:00 committed by Julien Danjou
parent 1fb19af03d
commit d18d51e106
1 changed files with 4 additions and 17 deletions

19
event.c
View File

@ -665,24 +665,11 @@ event_handle_unmapnotify(void *data __attribute__ ((unused)),
if((c = client_getbywin(ev->window))) if((c = client_getbywin(ev->window)))
{ {
if(ev->event == xutil_screen_get(connection, c->phys_screen)->root) if(ev->event == xutil_screen_get(connection, c->phys_screen)->root
{ && XCB_EVENT_SENT(ev)
if(!XCB_EVENT_SENT(ev)) && xwindow_get_state_reply(xwindow_get_state_unchecked(c->window)) == XCB_WM_STATE_NORMAL)
{
/* A regular UnmapNotify, remove that client from our lists */
client_unmanage(c); client_unmanage(c);
} }
else
{
/* According to ICCCM 4.1.4 a client sends a synthetic
* UnmapNotify when it wants to switch to Widthdrawn state.
* We handle these by unmapping the client and waiting for the
* "real" UnmapNotify.
*/
xcb_unmap_window(connection, ev->window);
}
}
}
else else
for(int i = 0; i < globalconf.embedded.len; i++) for(int i = 0; i < globalconf.embedded.len; i++)
if(globalconf.embedded.tab[i].win == ev->window) if(globalconf.embedded.tab[i].win == ev->window)