changeset 496:864a66f028d8

Don't be fooled by unclutter - the mouse isn't really leaving our window
author Sam Lantinga <slouken@libsdl.org>
date Mon, 16 Sep 2002 07:09:04 +0000
parents 4503f9475cf2
children bb2d68294e81
files src/video/x11/SDL_x11events.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Mon Sep 16 06:50:26 2002 +0000
+++ b/src/video/x11/SDL_x11events.c	Mon Sep 16 07:09:04 2002 +0000
@@ -196,7 +196,8 @@
 printf("Mode: NotifyUngrab\n");
 #endif
 		if ( (xevent.xcrossing.mode != NotifyGrab) &&
-		     (xevent.xcrossing.mode != NotifyUngrab) ) {
+		     (xevent.xcrossing.mode != NotifyUngrab) &&
+		     (xevent.xcrossing.detail != NotifyInferior) ) {
 			if ( this->input_grab == SDL_GRAB_OFF ) {
 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
 			} else {