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 3511 42cfa69e351b
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
--- a/src/video/SDL_sysvideo.h	Wed Dec 02 07:28:58 2009 +0000
+++ b/src/video/SDL_sysvideo.h	Wed Dec 02 07:38:28 2009 +0000
@@ -147,7 +147,6 @@
 #define FULLSCREEN_VISIBLE(W) \
     (((W)->flags & SDL_WINDOW_FULLSCREEN) && \
      ((W)->flags & SDL_WINDOW_SHOWN) && \
-     ((W)->flags & SDL_WINDOW_INPUT_FOCUS) && \
      !((W)->flags & SDL_WINDOW_MINIMIZED))
 
 /*
--- a/src/video/SDL_video.c	Wed Dec 02 07:28:58 2009 +0000
+++ b/src/video/SDL_video.c	Wed Dec 02 07:38:28 2009 +0000
@@ -1435,7 +1435,6 @@
 {
     SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
 
-    SDL_UpdateFullscreenMode(window, SDL_TRUE);
     if (display->gamma && _this->SetDisplayGammaRamp) {
         _this->SetDisplayGammaRamp(_this, display, display->gamma);
     }
@@ -1450,7 +1449,6 @@
 {
     SDL_VideoDisplay *display = SDL_GetDisplayFromWindow(window);
 
-    SDL_UpdateFullscreenMode(window, SDL_FALSE);
     if (display->gamma && _this->SetDisplayGammaRamp) {
         _this->SetDisplayGammaRamp(_this, display, display->saved_gamma);
     }