From cd6acdb6bcd932508e86684f669a1b4a184b3d4e Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Fri, 23 Jun 2017 10:35:17 +0200 Subject: [PATCH] sdl: Add SDL_WINDOW_BORDERLESS for fullscreen, required by some window managers on linux [O. Galibert] Breakage was in 8338e0d7a490c8d33f924b55582223e70015c195 (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. --- src/osd/sdl/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/sdl/window.cpp b/src/osd/sdl/window.cpp index ea86d851bdd..ba805e517ec 100644 --- a/src/osd/sdl/window.cpp +++ b/src/osd/sdl/window.cpp @@ -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");