Skip to content

Commit

Permalink
Use SDL_WINDOW_FULLSCREEN_DESKTOP flag on macOS, this enables command…
Browse files Browse the repository at this point in the history
…+tab, game mode, starting the application under the notch (#213)
  • Loading branch information
taysta authored Sep 22, 2024
1 parent 100cdfc commit b779ff8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/sdl/sdl_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,11 @@ static rserr_t GLimp_SetMode(glconfig_t *glConfig, const windowDesc_t *windowDes

if( fullscreen )
{
#ifdef MACOS_X
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP;
#else
flags |= SDL_WINDOW_FULLSCREEN;
#endif
glConfig->isFullscreen = qtrue;
}
else
Expand Down

0 comments on commit b779ff8

Please sign in to comment.