]> Dogcows Code - chaz/openbox/blobdiff - util/epist/window.cc
make epist compile with the new code base
[chaz/openbox] / util / epist / window.cc
index 5d1690f00454d7a0162f7d230024c8d25a20abae..505a0f87c393c18353c312c740615a2fb8184ea7 100644 (file)
@@ -34,7 +34,7 @@ using std::dec;
 #include "epist.hh"
 #include "screen.hh"
 #include "window.hh"
-#include "../../src/XAtom.hh"
+#include "../../src/xatom.hh"
 
   // defined by black/openbox
 const unsigned long XWindow::PropBlackboxAttributesElements;
@@ -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.02453 seconds and 4 git commands to generate.