On multi-display systems it's perfectly reasonable to have focus on a window on another monitor while the application is fullscreen.
authorSam Lantinga <slouken@libsdl.org>
Wed, 02 Dec 2009 07:38:28 +0000
changeset 351142cfa69e351b
parent 3510 58cbfa81317a
child 3512 5ffbbfb78987
On multi-display systems it's perfectly reasonable to have focus on a window on another monitor while the application is fullscreen.
src/video/SDL_sysvideo.h
src/video/SDL_video.c
     1.1 --- a/src/video/SDL_sysvideo.h	Wed Dec 02 07:28:58 2009 +0000
     1.2 +++ b/src/video/SDL_sysvideo.h	Wed Dec 02 07:38:28 2009 +0000
     1.3 @@ -147,7 +147,6 @@
     1.4  #define FULLSCREEN_VISIBLE(W) \
     1.5      (((W)->flags & SDL_WINDOW_FULLSCREEN) && \
     1.6       ((W)->flags & SDL_WINDOW_SHOWN) && \
     1.7 -     ((W)->flags & SDL_WINDOW_INPUT_FOCUS) && \
     1.8       !((W)->flags & SDL_WINDOW_MINIMIZED))
     1.9  
    1.10  /*
     2.1 --- a/src/video/SDL_video.c	Wed Dec 02 07:28:58 2009 +0000
     2.2 +++ b/src/video/SDL_video.c	Wed Dec 02 07:38:28 2009 +0000
     2.3 @@ -1435,7 +1435,6 @@
     2.4  {
     2.5      SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
     2.6  
     2.7 -    SDL_UpdateFullscreenMode(window, SDL_TRUE);
     2.8      if (display->gamma && _this->SetDisplayGammaRamp) {
     2.9          _this->SetDisplayGammaRamp(_this, display, display->gamma);
    2.10      }
    2.11 @@ -1450,7 +1449,6 @@
    2.12  {
    2.13      SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
    2.14  
    2.15 -    SDL_UpdateFullscreenMode(window, SDL_FALSE);
    2.16      if (display->gamma && _this->SetDisplayGammaRamp) {
    2.17          _this->SetDisplayGammaRamp(_this, display, display->saved_gamma);
    2.18      }