# HG changeset patch # User Sam Lantinga # Date 1279609286 25200 # Node ID 4aa31b9207f2a336150b6a291c27a266feb27aeb # Parent 4deaba8b1b42efc6530112b400170bf831d195b1 Finally fixed bug 894 without breaking bug 716. Yay! :) diff -r 4deaba8b1b42 -r 4aa31b9207f2 src/video/x11/SDL_x11events.c --- 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,