summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-05-28 19:34:23 +0000
committerDana Jansens <danakj@orodu.net>2002-05-28 19:34:23 +0000
commit53353465f22975f7419cadb25d0ce1b64e1b4d85 (patch)
tree2ace49f4582e42c3426e01e8d5d8f42ee65fcdf4
parentb8ee3dbc4565efb19338c5cf1948f0f4e2f24fd6 (diff)
fix so that FocusIn events for focus transer from root->client are used.
-rw-r--r--src/blackbox.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/blackbox.cc b/src/blackbox.cc
index c93b28a6..1c543bbe 100644
--- 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;
}