sdl: Add SDL_WINDOW_BORDERLESS for fullscreen, required by some window managers on linux [O. Galibert]

Breakage was in 8338e0d7a4 (march 2015),
and yes, fullscreen didn't work correctly for me since then.  Shows
how much I use it, I guess.  FWTW my window manage is the venerable
fvwm2.  CourierSud, if you happen to remember why you changed that (in
the middle of a lot of other changes), let me know, and we'll see how
to make it work for everybody.
This commit is contained in:
Olivier Galibert 2017-06-23 10:35:17 +02:00
parent fb61e98cc5
commit cd6acdb6bc

View File

@ -737,7 +737,7 @@ int sdl_window_info::complete_create()
// create the SDL window
// soft driver also used | SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_MOUSE_FOCUS
m_extra_flags |= (fullscreen() ?
/*SDL_WINDOW_BORDERLESS |*/ SDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE);
SDL_WINDOW_BORDERLESS | SDL_WINDOW_INPUT_FOCUS | SDL_WINDOW_FULLSCREEN : SDL_WINDOW_RESIZABLE);
#if defined(SDLMAME_WIN32)
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");