projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f00197
)
actually work for windows that dont specify the input hint
author
Dana Jansens
<danakj@orodu.net>
Mon, 9 Sep 2002 16:31:53 +0000
(16:31 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 9 Sep 2002 16:31:53 +0000
(16:31 +0000)
util/epist/window.cc
patch
|
blob
|
history
diff --git
a/util/epist/window.cc
b/util/epist/window.cc
index 5d1690f00454d7a0162f7d230024c8d25a20abae..6b3f2f5f7741895bdc714ca1b3de4cb24cc05254 100644
(file)
--- 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;
}
}