mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +00:00
Revert "Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186."
This reverts commit2de2e9d031. The fullscreen state is no longer available to check, and the actual bug this was trying to work around was fixed inad813a65e7
This commit is contained in:
@@ -655,14 +655,8 @@ int X11_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_PropertiesI
|
||||
return SDL_SetError("Couldn't create window");
|
||||
}
|
||||
|
||||
/* Do not set borderless window if in desktop fullscreen, this causes
|
||||
flickering in multi-monitor setups */
|
||||
if (!((window->pending_flags & SDL_WINDOW_FULLSCREEN) &&
|
||||
(window->flags & SDL_WINDOW_BORDERLESS) &&
|
||||
!window->fullscreen_exclusive)) {
|
||||
SetWindowBordered(display, screen, w,
|
||||
!(window->flags & SDL_WINDOW_BORDERLESS));
|
||||
}
|
||||
SetWindowBordered(display, screen, w,
|
||||
!(window->flags & SDL_WINDOW_BORDERLESS));
|
||||
|
||||
sizehints = X11_XAllocSizeHints();
|
||||
/* Setup the normal size hints */
|
||||
|
||||
Reference in New Issue
Block a user