]> Dogcows Code - chaz/openbox/commitdiff
remove this check, it didnt guarantee anything anyways
authorDana Jansens <danakj@orodu.net>
Mon, 14 May 2007 13:44:49 +0000 (13:44 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 14 May 2007 13:44:49 +0000 (13:44 +0000)
openbox/client.c

index 10626633e64846917c5bf0c20cefdebe52bd16f9..c1df47865c547d987d4f35e2beedc87317bf155f 100644 (file)
@@ -3343,24 +3343,6 @@ gboolean client_can_focus(ObClient *self)
     if (!(self->can_focus || self->focus_notify))
         return FALSE;
 
-    /* do a check to see if the window has already been unmapped or destroyed
-       do this intelligently while watching out for unmaps we've generated
-       (ignore_unmaps > 0) */
-    if (XCheckTypedWindowEvent(ob_display, self->window,
-                               DestroyNotify, &ev)) {
-        XPutBackEvent(ob_display, &ev);
-        return FALSE;
-    }
-    while (XCheckTypedWindowEvent(ob_display, self->window,
-                                  UnmapNotify, &ev)) {
-        if (self->ignore_unmaps) {
-            self->ignore_unmaps--;
-        } else {
-            XPutBackEvent(ob_display, &ev);
-            return FALSE;
-        }
-    }
-
     return TRUE;
 }
 
This page took 0.026324 seconds and 4 git commands to generate.