summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-14 13:44:49 +0000
committerDana Jansens <danakj@orodu.net>2007-05-14 13:44:49 +0000
commit9011eb27e0b74828001c468538bfcbd815f99bdf (patch)
tree3c5161366849a25a840d87322b0c1546798bfc5f
parenta019ee1028c396f7d5ec107d100b43222c945b59 (diff)
remove this check, it didnt guarantee anything anyways
-rw-r--r--openbox/client.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 10626633..c1df4786 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -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;
}