]> Dogcows Code - chaz/openbox/commitdiff
actually work for windows that dont specify the input hint
authorDana Jansens <danakj@orodu.net>
Mon, 9 Sep 2002 16:31:53 +0000 (16:31 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 9 Sep 2002 16:31:53 +0000 (16:31 +0000)
util/epist/window.cc

index 5d1690f00454d7a0162f7d230024c8d25a20abae..6b3f2f5f7741895bdc714ca1b3de4cb24cc05254 100644 (file)
@@ -130,12 +130,13 @@ void XWindow::updateNormalHints() {
 void XWindow::updateWMHints() {
   XWMHints *hints;
 
+  // assume a window takes input if it doesnt specify
+  _can_focus = True;
+  
   if ((hints = XGetWMHints(_epist->getXDisplay(), _window)) != NULL) {
-    _can_focus = hints->input;
+    if (hints->flags & InputHint)
+      _can_focus = hints->input;
     XFree(hints);
-  } else {
-    // assume a window takes input if it doesnt specify
-    _can_focus = True;
   }
 }
 
This page took 0.026969 seconds and 4 git commands to generate.