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++)