comparison src/video/x11/SDL_x11wm.c @ 1765:c2c6ff414ef5

Fixed bug #45 Improved Xinerama support. Added support for the SDL_VIDEO_FULLSCREEN_HEAD environment variable, currently supported on X11 Xinerama configurations. Only use the VidMode extension on the primary head.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 04 May 2006 16:51:07 +0000
parents 3ba88cb7eb1b
children ae9f6be81810
comparison
equal deleted inserted replaced
1764:4b2f27334dce 1765:c2c6ff414ef5
330 return(SDL_GRAB_OFF); 330 return(SDL_GRAB_OFF);
331 } 331 }
332 if ( ! SDL_Window ) { 332 if ( ! SDL_Window ) {
333 return(mode); /* Will be set later on mode switch */ 333 return(mode); /* Will be set later on mode switch */
334 } 334 }
335 #if SDL_VIDEO_DRIVER_X11_XINERAMA
336 /* FIXME: Is this okay?
337 if ( use_xinerama ) {
338 mode &= ~SDL_GRAB_FULLSCREEN;
339 }
340 */
341 #endif
335 if ( mode == SDL_GRAB_OFF ) { 342 if ( mode == SDL_GRAB_OFF ) {
336 XUngrabPointer(SDL_Display, CurrentTime); 343 XUngrabPointer(SDL_Display, CurrentTime);
337 XUngrabKeyboard(SDL_Display, CurrentTime); 344 XUngrabKeyboard(SDL_Display, CurrentTime);
338 } else { 345 } else {
339 if ( this->screen->flags & SDL_FULLSCREEN ) { 346 if ( this->screen->flags & SDL_FULLSCREEN ) {