also filter out LeaveNotify with NotifyInferior

2002-05-23  Havoc Pennington  <hp@pobox.com>

	* src/display.c (event_callback): also filter out LeaveNotify
	with NotifyInferior
This commit is contained in:
Havoc Pennington 2002-05-24 03:09:21 +00:00 committed by Havoc Pennington
parent 49fe8f0399
commit d70e08039c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-05-23 Havoc Pennington <hp@pobox.com>
* src/display.c (event_callback): also filter out LeaveNotify
with NotifyInferior
2002-05-23 Jayaraj Rajappan <jayaraj.rajappan@wipro.com> 2002-05-23 Jayaraj Rajappan <jayaraj.rajappan@wipro.com>
* src/display.c (event_callback): fix for bugzilla bug #72314, * src/display.c (event_callback): fix for bugzilla bug #72314,

View File

@ -1160,7 +1160,8 @@ event_callback (XEvent *event,
*/ */
if (window->has_focus && if (window->has_focus &&
event->xcrossing.mode != NotifyGrab && event->xcrossing.mode != NotifyGrab &&
event->xcrossing.mode != NotifyUngrab) event->xcrossing.mode != NotifyUngrab &&
event->xcrossing.detail != NotifyInferior)
{ {
meta_verbose ("Unsetting focus from %s due to LeaveNotify\n", meta_verbose ("Unsetting focus from %s due to LeaveNotify\n",
window->desc); window->desc);