#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;
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;
}
}