Skip to content

Commit

Permalink
Fixed bug #104
Browse files Browse the repository at this point in the history
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
  • Loading branch information
slouken committed May 9, 2006
1 parent 7ff9fc8 commit de2da44
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -291,11 +291,10 @@ printf("Mode: NotifyUngrab\n");
(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;
Expand Down

0 comments on commit de2da44

Please sign in to comment.