# HG changeset patch # User Sam Lantinga # Date 1147159232 0 # Node ID 01313c1a2bbed5f342346c3812f7fdeaa7e23343 # Parent e022633856434601f1751ed286f063c191f55593 Fixed bug #104 If your mouse cursor is not within the SDL frame and you warp the mouse, you get an enter notify, not a motion notify. Therefore, SDL does not update its internal mouse state. What's about calling SDL_PrivateMouseMotion even when getting an EnterNotify? Regards, Johannes diff -r e02263385643 -r 01313c1a2bbe src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Tue May 09 07:16:38 2006 +0000 +++ b/src/video/x11/SDL_x11events.c Tue May 09 07:20:32 2006 +0000 @@ -291,11 +291,10 @@ (xevent.xcrossing.mode != NotifyUngrab) ) { if ( this->input_grab == SDL_GRAB_OFF ) { posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); - } else { - posted = SDL_PrivateMouseMotion(0, 0, - xevent.xcrossing.x, - xevent.xcrossing.y); } + posted = SDL_PrivateMouseMotion(0, 0, + xevent.xcrossing.x, + xevent.xcrossing.y); } } break;