From 8c2e8ddf5ce3b25476c8f436b0bae07609e75393 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 15 Oct 2002 14:46:12 +0000 Subject: [PATCH] Ignore EnterNotify events when the detail field is set to NotifyInferior. 2002-10-14 Federico Mena Quintero * src/display.c (event_callback): Ignore EnterNotify events when the detail field is set to NotifyInferior. Fixes #95747. --- ChangeLog | 5 +++++ src/display.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a3312a05b..80e21611f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-10-14 Federico Mena Quintero + + * src/display.c (event_callback): Ignore EnterNotify events when + the detail field is set to NotifyInferior. Fixes #95747. + 2002-10-12 Havoc Pennington * src/metacity.schemas.in: button layout key diff --git a/src/display.c b/src/display.c index 1f3ecf34a..e9932a226 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 ()) {