X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=util%2Fepist%2Fwindow.cc;h=505a0f87c393c18353c312c740615a2fb8184ea7;hb=97019b8b77f7e6450d87b057bcb6eae43e9f3e2b;hp=5d1690f00454d7a0162f7d230024c8d25a20abae;hpb=22e8615f6125cc117af9e01124b9bcc2b19c59ab;p=chaz%2Fopenbox diff --git a/util/epist/window.cc b/util/epist/window.cc index 5d1690f0..505a0f87 100644 --- a/util/epist/window.cc +++ b/util/epist/window.cc @@ -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; } }