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.
This commit is contained in:
Federico Mena Quintero 2002-10-15 14:46:12 +00:00 committed by Federico Mena Quintero
parent 9740b3f1df
commit 8c2e8ddf5c
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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 ())
{