- if (XCheckTypedWindowEvent(obt_display, win, DestroyNotify, &e) ||
- XCheckTypedWindowEvent(obt_display, win, UnmapNotify, &e))
- {
- XPutBackEvent(obt_display, &e);
- ob_debug("Trying to manage unmapped window. Aborting that.\n");
+ if (xqueue_exists_local(check_unmap, &win)) {
+ ob_debug("Trying to manage unmapped window. Aborting that.");