diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-09-09 16:31:53 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-09-09 16:31:53 +0000 |
| commit | 70d93941428b1121ef6737b9952d0ad8fc40f7ad (patch) | |
| tree | 0fb8afb99d3b3209e966f23f26e5cb0b2a692ac3 | |
| parent | 7f001973a8154b1fa9db110092c438b862f81c3b (diff) | |
actually work for windows that dont specify the input hint
| -rw-r--r-- | util/epist/window.cc | 9 |
1 files changed, 5 insertions, 4 deletions
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; } } |
