diff src/video/x11/SDL_x11events.c @ 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 ac59b067815b
children b8d311d90021
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 {