diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-24 20:39:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-24 20:39:59 +0000 |
| commit | 79cd7b4b2c21c975c441831760708d4919208f6d (patch) | |
| tree | 7a911bad498b0123886cd9727d1f01d296d1c53a /openbox/event.c | |
| parent | d19c184b2d83e3f129a085dee721d3fd22b003f1 (diff) | |
dont cause focus change with enter events when youre already in the window
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/openbox/event.c b/openbox/event.c index 2d807aae..c3fab03e 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -761,9 +761,9 @@ static void event_handle_client(ObClient *client, XEvent *e) if (keyboard_interactively_grabbed()) break; if (config_focus_follow && config_focus_delay && - /* leaveinferior events can happen when the mouse goes onto the - window's border and then into the window before the delay - is up */ + /* leave inferior events can happen when the mouse goes onto + the window's border and then into the window before the + delay is up */ e->xcrossing.detail != NotifyInferior) { ob_main_loop_timeout_remove_data(ob_main_loop, @@ -810,7 +810,9 @@ static void event_handle_client(ObClient *client, XEvent *e) if (keyboard_interactively_grabbed()) break; if (e->xcrossing.mode == NotifyGrab || - e->xcrossing.mode == NotifyUngrab) + e->xcrossing.mode == NotifyUngrab || + /*ignore enters when we're already in the window */ + e->xcrossing.detail == NotifyInferior) { ob_debug_type(OB_DEBUG_FOCUS, "%sNotify mode %d detail %d on %lx IGNORED\n", |
