Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11wm.c @ 99:1b387dc653d0
Oops, I committed debug code...
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Mon, 09 Jul 2001 23:26:13 +0000 |
parents | 8a5aff5c1294 |
children | 3f09f52ac2cc |
comparison
equal
deleted
inserted
replaced
98:8a5aff5c1294 | 99:1b387dc653d0 |
---|---|
248 } | 248 } |
249 if ( ! SDL_Window ) { | 249 if ( ! SDL_Window ) { |
250 return(mode); /* Will be set later on mode switch */ | 250 return(mode); /* Will be set later on mode switch */ |
251 } | 251 } |
252 if ( mode == SDL_GRAB_OFF ) { | 252 if ( mode == SDL_GRAB_OFF ) { |
253 printf("SDL grab OFF\n"); | |
254 XUngrabPointer(SDL_Display, CurrentTime); | 253 XUngrabPointer(SDL_Display, CurrentTime); |
255 XUngrabKeyboard(SDL_Display, CurrentTime); | 254 XUngrabKeyboard(SDL_Display, CurrentTime); |
256 } else { | 255 } else { |
257 printf("SDL grab ON\n"); | |
258 if ( this->screen->flags & SDL_FULLSCREEN ) { | 256 if ( this->screen->flags & SDL_FULLSCREEN ) { |
259 /* Unbind the mouse from the fullscreen window */ | 257 /* Unbind the mouse from the fullscreen window */ |
260 XUngrabPointer(SDL_Display, CurrentTime); | 258 XUngrabPointer(SDL_Display, CurrentTime); |
261 } | 259 } |
262 /* Try to grab the mouse */ | 260 /* Try to grab the mouse */ |