diff options
author | Federico Mena Quintero <federico@ximian.com> | 2002-10-15 14:46:12 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2002-10-15 14:46:12 +0000 |
commit | 8c2e8ddf5ce3b25476c8f436b0bae07609e75393 (patch) | |
tree | f270066b169076ed12571ee7ba3f5e9e82574670 | |
parent | 9740b3f1df9a6f8dbc38e273e4661b2b1d290b8a (diff) | |
download | metacity-8c2e8ddf5ce3b25476c8f436b0bae07609e75393.tar.gz |
Ignore EnterNotify events when the detail field is set to NotifyInferior.
2002-10-14 Federico Mena Quintero <federico@ximian.com>
* src/display.c (event_callback): Ignore EnterNotify events when
the detail field is set to NotifyInferior. Fixes #95747.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/display.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2002-10-14 Federico Mena Quintero <federico@ximian.com> + + * src/display.c (event_callback): Ignore EnterNotify events when + the detail field is set to NotifyInferior. Fixes #95747. + 2002-10-12 Havoc Pennington <hp@pobox.com> * src/metacity.schemas.in: button layout key diff --git a/src/display.c b/src/display.c index 1f3ecf34..e9932a22 100644 --- a/src/display.c +++ b/src/display.c @@ -1192,7 +1192,8 @@ event_callback (XEvent *event, break; case EnterNotify: /* do this even if window->has_focus to avoid races */ - if (window && !serial_is_ignored (display, event->xany.serial)) + if (window && !serial_is_ignored (display, event->xany.serial) && + event->xcrossing.detail != NotifyInferior) { switch (meta_prefs_get_focus_mode ()) { |