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:
b8ee3db
)
fix so that FocusIn events for focus transer from root->client are used.
author
Dana Jansens
<danakj@orodu.net>
Tue, 28 May 2002 19:34:23 +0000
(19:34 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 28 May 2002 19:34:23 +0000
(19:34 +0000)
src/blackbox.cc
patch
|
blob
|
history
diff --git
a/src/blackbox.cc
b/src/blackbox.cc
index
c93b28a
..
1c543bb
100644
(file)
--- a/
src/blackbox.cc
+++ b/
src/blackbox.cc
@@
-559,11
+559,14
@@
void Blackbox::process_event(XEvent *e) {
}
case FocusIn: {
- if (e->xfocus.detail != NotifyNonlinear) {
+ if (e->xfocus.detail != NotifyNonlinear &&
+ e->xfocus.detail != NotifyAncestor) {
/*
don't process FocusIns when:
1. the new focus window isn't an ancestor or inferior of the old
focus window (NotifyNonlinear)
+ make sure to allow the FocusIn when the old focus window was an
+ ancestor but didn't have a parent, such as root (NotifyAncestor)
*/
break;
}