comparison 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
comparison
equal deleted inserted replaced
1739:3a3e847aadb9 1740:db7e15a99cb3
664 if ( switch_waiting & SDL_FULLSCREEN ) { 664 if ( switch_waiting & SDL_FULLSCREEN ) {
665 switch_time = now + 1500; 665 switch_time = now + 1500;
666 } else { 666 } else {
667 switch_time = now + 200; 667 switch_time = now + 200;
668 } 668 }
669 } else if ( now >= switch_time ) { 669 } else if ( (int)(switch_time-now) <= 0 ) {
670 Uint32 go_fullscreen; 670 Uint32 go_fullscreen;
671 671
672 go_fullscreen = switch_waiting & SDL_FULLSCREEN; 672 go_fullscreen = switch_waiting & SDL_FULLSCREEN;
673 switch_waiting = 0; 673 switch_waiting = 0;
674 if ( SDL_VideoSurface->flags & SDL_FULLSCREEN ) { 674 if ( SDL_VideoSurface->flags & SDL_FULLSCREEN ) {