actually work for windows that dont specify the input hint
Dana Jansens danakj@orodu.net
1 files changed,
5 insertions(+),
4 deletions(-)
jump to
M
util/epist/window.cc
→
util/epist/window.cc
@@ -130,12 +130,13 @@
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; } }