Skip to content

Commit

Permalink
Remove window decorations when fullscreen
Browse files Browse the repository at this point in the history
Fix a compatibility issue with metacity 3.36, where SDL and the WM
might keep fighting for the window flags in an endless loop and/or in
an inconsistent window mode.

Upstream reference: https://gitlab.gnome.org/GNOME/metacity/-/issues/11
  • Loading branch information
oxullo committed Jun 30, 2020
1 parent 460a60d commit 15bb592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/SDLWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ SDLWindow::SDLWindow(const DisplayParams& dp, const WindowParams& wp, GLConfig g
}
unsigned int flags = SDL_WINDOW_SHOWN | SDL_WINDOW_OPENGL;
if (dp.isFullscreen()) {
flags |= SDL_WINDOW_FULLSCREEN;
flags |= SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS;
}
if (!wp.m_bHasWindowFrame) {
flags |= SDL_WINDOW_BORDERLESS;
Expand Down

0 comments on commit 15bb592

Please sign in to comment.