From 70d93941428b1121ef6737b9952d0ad8fc40f7ad Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 9 Sep 2002 16:31:53 +0000 Subject: [PATCH] actually work for windows that dont specify the input hint --- util/epist/window.cc | 9 +++++---- 1 file 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; } } -- 2.45.2