Don't be fooled by unclutter - the mouse isn't really leaving our window
authorSam Lantinga <slouken@libsdl.org>
Mon, 16 Sep 2002 07:09:04 +0000
changeset 496864a66f028d8
parent 495 4503f9475cf2
child 497 bb2d68294e81
Don't be fooled by unclutter - the mouse isn't really leaving our window
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Mon Sep 16 06:50:26 2002 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Mon Sep 16 07:09:04 2002 +0000
     1.3 @@ -196,7 +196,8 @@
     1.4  printf("Mode: NotifyUngrab\n");
     1.5  #endif
     1.6  		if ( (xevent.xcrossing.mode != NotifyGrab) &&
     1.7 -		     (xevent.xcrossing.mode != NotifyUngrab) ) {
     1.8 +		     (xevent.xcrossing.mode != NotifyUngrab) &&
     1.9 +		     (xevent.xcrossing.detail != NotifyInferior) ) {
    1.10  			if ( this->input_grab == SDL_GRAB_OFF ) {
    1.11  				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
    1.12  			} else {