diff src/video/x11/SDL_x11events.c @ 4557:4aa31b9207f2 SDL-1.2

Finally fixed bug 894 without breaking bug 716. Yay! :)
author Sam Lantinga <slouken@libsdl.org>
date Tue, 20 Jul 2010 00:01:26 -0700
parents 60db3d01cb3a
children
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c	Sun Jul 18 11:37:12 2010 -0700
+++ b/src/video/x11/SDL_x11events.c	Tue Jul 20 00:01:26 2010 -0700
@@ -441,8 +441,10 @@
 if ( xevent.xcrossing.mode == NotifyUngrab )
 printf("Mode: NotifyUngrab\n");
 #endif
-		if ( xevent.xcrossing.detail != NotifyInferior ) {
-			if ( this->input_grab == SDL_GRAB_OFF ) {
+		if ( (xevent.xcrossing.mode != NotifyGrab) &&
+		     (xevent.xcrossing.mode != NotifyUngrab) &&
+		     (xevent.xcrossing.detail != NotifyInferior) ) {
+               		if ( this->input_grab == SDL_GRAB_OFF ) {
 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
 			} else {
 				posted = SDL_PrivateMouseMotion(0, 0,