summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-28 10:46:25 +0000
committerDana Jansens <danakj@orodu.net>2003-03-28 10:46:25 +0000
commit4d65fe35fffbb1936b28428829153c2b6b58d994 (patch)
tree9d157c6ceef4a6805196be0281aaac3861871651 /openbox
parent5895fa84ac6f66f272be745505e76250c24d3ba1 (diff)
comment why NotifyAncestor is not ignored
Diffstat (limited to 'openbox')
-rw-r--r--openbox/event.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index b048e7e6..aaa4c768 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -223,8 +223,13 @@ void event_process(XEvent *e)
case FocusIn:
g_message("FocusIn on %lx mode %d detail %d", window,
e->xfocus.mode, e->xfocus.detail);
+ /* NotifyAncestor is not ignored in FocusIn like it is in FocusOut
+ because of RevertToPointerRoot. If the focus ends up reverting to
+ pointer root on a workspace change, then the FocusIn event that we
+ want will be of type NotifyAncestor. This situation does not occur
+ for FocusOut, so it is safely ignored there.
+ */
if (e->xfocus.detail == NotifyInferior ||
- /*e->xfocus.detail == NotifyAncestor ||*/
e->xfocus.detail > NotifyNonlinearVirtual) return;
g_message("FocusIn on %lx", window);
break;