From eb894678969524a80f56d1b28c6fdb5b10ad9b0e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 1 Aug 2010 15:46:18 +0200 Subject: [PATCH] Unmanage clients on UnmapNotifies ICCCM mandates that window managers have to trigger the conversion to withdrawn state on the synthetic and the real unmap notify, no matter if any is missing. Previously we couldn't do this, but thanks to the reparenting, we can now do this properly. Signed-off-by: Uli Schlachter --- event.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/event.c b/event.c index 2fb89dab..01a69809 100644 --- a/event.c +++ b/event.c @@ -629,12 +629,8 @@ event_handle_unmapnotify(xcb_unmap_notify_event_t *ev) if((c = client_getbywin(ev->window))) { - if(ev->event == xutil_screen_get(globalconf.connection, c->phys_screen)->root - && XCB_EVENT_SENT(ev)) - { - client_unmanage(c); - xcb_unmap_window(globalconf.connection, ev->window); - } + client_unmanage(c); + xcb_unmap_window(globalconf.connection, ev->window); } else for(int i = 0; i < globalconf.embedded.len; i++)