Don't introduce unfounded exceptions

This commit is contained in:
Bastien Dejean 2013-09-18 12:58:09 +02:00
parent afcbf4795e
commit 435727c9fa

View file

@ -173,8 +173,7 @@ void unmap_notify(xcb_generic_event_t *evt)
coordinates_t loc;
if (locate_window(e->window, &loc)) {
if (XCB_EVENT_SENT(evt))
set_state(e->window, XCB_ICCCM_WM_STATE_WITHDRAWN);
set_state(e->window, XCB_ICCCM_WM_STATE_WITHDRAWN);
remove_node(loc.desktop, loc.node);
arrange(loc.monitor, loc.desktop);
}