From: Dana Jansens Date: Mon, 9 Sep 2002 16:31:53 +0000 (+0000) Subject: actually work for windows that dont specify the input hint X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=70d93941428b1121ef6737b9952d0ad8fc40f7ad;p=chaz%2Fopenbox actually work for windows that dont specify the input hint --- diff --git a/util/epist/window.cc b/util/epist/window.cc index 5d1690f0..6b3f2f5f 100644 --- a/util/epist/window.cc +++ b/util/epist/window.cc @@ -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; } }