all repos — openbox @ 70d93941428b1121ef6737b9952d0ad8fc40f7ad

openbox fork - make it a bit more like ryudo

actually work for windows that dont specify the input hint
Dana Jansens danakj@orodu.net
commit

70d93941428b1121ef6737b9952d0ad8fc40f7ad

parent

7f001973a8154b1fa9db110092c438b862f81c3b

1 files changed, 5 insertions(+), 4 deletions(-)

jump to
M util/epist/window.ccutil/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; } }