Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't reset the mouse, that's actually bad behavior most of the time …
…for windowed applications.
  • Loading branch information
slouken committed Jan 28, 2013
1 parent 89bce93 commit 15afcdf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/events/SDL_mouse.c
Expand Up @@ -96,10 +96,17 @@ SDL_SetMouseFocus(SDL_Window * window)
return;
}

/* Actually, this ends up being a bad idea, because most operating
systems have an implicit grab when you press the mouse button down
so you can drag things out of the window and then get the mouse up
when it happens. So, #if 0...
*/
#if 0
if (mouse->focus && !window) {
/* We won't get anymore mouse messages, so reset mouse state */
SDL_ResetMouse();
}
#endif

/* See if the current window has lost focus */
if (mouse->focus) {
Expand Down

0 comments on commit 15afcdf

Please sign in to comment.