Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11events.c @ 1789:01313c1a2bbe
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
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 09 May 2006 07:20:32 +0000 |
parents | 45669d4efd02 |
children | 409974dedf2e |
comparison
equal
deleted
inserted
replaced
1788:e02263385643 | 1789:01313c1a2bbe |
---|---|
289 #endif | 289 #endif |
290 if ( (xevent.xcrossing.mode != NotifyGrab) && | 290 if ( (xevent.xcrossing.mode != NotifyGrab) && |
291 (xevent.xcrossing.mode != NotifyUngrab) ) { | 291 (xevent.xcrossing.mode != NotifyUngrab) ) { |
292 if ( this->input_grab == SDL_GRAB_OFF ) { | 292 if ( this->input_grab == SDL_GRAB_OFF ) { |
293 posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); | 293 posted = SDL_PrivateAppActive(1, SDL_APPMOUSEFOCUS); |
294 } else { | 294 } |
295 posted = SDL_PrivateMouseMotion(0, 0, | 295 posted = SDL_PrivateMouseMotion(0, 0, |
296 xevent.xcrossing.x, | 296 xevent.xcrossing.x, |
297 xevent.xcrossing.y); | 297 xevent.xcrossing.y); |
298 } | |
299 } | 298 } |
300 } | 299 } |
301 break; | 300 break; |
302 | 301 |
303 /* Losing mouse coverage? */ | 302 /* Losing mouse coverage? */ |