Ozkan Sezer 2022-09-06 19:56:29 +03:00
parent 10e1ef00e2
commit 5ffede35d9
1 changed files with 3 additions and 3 deletions

View File

@ -160,7 +160,7 @@ static VideoBootStrap *bootstrap[] = {
#define FULLSCREEN_MASK (SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_FULLSCREEN) #define FULLSCREEN_MASK (SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_FULLSCREEN)
#ifdef __MACOSX__ #if defined(__MACOSX__) && defined(SDL_VIDEO_DRIVER_COCOA)
/* Support for Mac OS X fullscreen spaces */ /* Support for Mac OS X fullscreen spaces */
extern SDL_bool Cocoa_IsWindowInFullscreenSpace(SDL_Window * window); extern SDL_bool Cocoa_IsWindowInFullscreenSpace(SDL_Window * window);
extern SDL_bool Cocoa_SetWindowFullscreenSpace(SDL_Window * window, SDL_bool state); extern SDL_bool Cocoa_SetWindowFullscreenSpace(SDL_Window * window, SDL_bool state);
@ -1335,7 +1335,7 @@ SDL_UpdateFullscreenMode(SDL_Window * window, SDL_bool fullscreen)
return 0; return 0;
} }
#ifdef __MACOSX__ #if defined(__MACOSX__) && defined(SDL_VIDEO_DRIVER_COCOA)
/* if the window is going away and no resolution change is necessary, /* if the window is going away and no resolution change is necessary,
do nothing, or else we may trigger an ugly double-transition do nothing, or else we may trigger an ugly double-transition
*/ */
@ -3170,7 +3170,7 @@ ShouldMinimizeOnFocusLoss(SDL_Window * window)
return SDL_FALSE; return SDL_FALSE;
} }
#ifdef __MACOSX__ #if defined(__MACOSX__) && defined(SDL_VIDEO_DRIVER_COCOA)
if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */ if (SDL_strcmp(_this->name, "cocoa") == 0) { /* don't do this for X11, etc */
if (Cocoa_IsWindowInFullscreenSpace(window)) { if (Cocoa_IsWindowInFullscreenSpace(window)) {
return SDL_FALSE; return SDL_FALSE;