Finally fixed bug 894 without breaking bug 716. Yay! :) SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 20 Jul 2010 00:01:26 -0700
branchSDL-1.2
changeset 45574aa31b9207f2
parent 4554 4deaba8b1b42
child 4564 5002d6aeb85c
Finally fixed bug 894 without breaking bug 716. Yay! :)
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Sun Jul 18 11:37:12 2010 -0700
     1.2 +++ b/src/video/x11/SDL_x11events.c	Tue Jul 20 00:01:26 2010 -0700
     1.3 @@ -441,8 +441,10 @@
     1.4  if ( xevent.xcrossing.mode == NotifyUngrab )
     1.5  printf("Mode: NotifyUngrab\n");
     1.6  #endif
     1.7 -		if ( xevent.xcrossing.detail != NotifyInferior ) {
     1.8 -			if ( this->input_grab == SDL_GRAB_OFF ) {
     1.9 +		if ( (xevent.xcrossing.mode != NotifyGrab) &&
    1.10 +		     (xevent.xcrossing.mode != NotifyUngrab) &&
    1.11 +		     (xevent.xcrossing.detail != NotifyInferior) ) {
    1.12 +               		if ( this->input_grab == SDL_GRAB_OFF ) {
    1.13  				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
    1.14  			} else {
    1.15  				posted = SDL_PrivateMouseMotion(0, 0,