Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11events.c @ 1740:db7e15a99cb3
Fixed bug #101
If we lose focus at all, unlock the mouse.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 27 Apr 2006 10:44:43 +0000 |
parents | 3ba88cb7eb1b |
children | e49147870aac c546353b1ad4 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11events.c Thu Apr 27 10:21:54 2006 +0000 +++ b/src/video/x11/SDL_x11events.c Thu Apr 27 10:44:43 2006 +0000 @@ -666,7 +666,7 @@ } else { switch_time = now + 200; } - } else if ( now >= switch_time ) { + } else if ( (int)(switch_time-now) <= 0 ) { Uint32 go_fullscreen; go_fullscreen = switch_waiting & SDL_FULLSCREEN;