Fix flickering of window when using desktop-fullscreen and borderless window on multiple monitors on Linux. Closes #8186.
This commit is contained in:
committed by
Sam Lantinga
parent
723835d16a
commit
2de2e9d031
@@ -604,8 +604,14 @@ int X11_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
|||||||
return SDL_SetError("Couldn't create window");
|
return SDL_SetError("Couldn't create window");
|
||||||
}
|
}
|
||||||
|
|
||||||
SetWindowBordered(display, screen, w,
|
/* Do not set borderless window if in desktop fullscreen, this causes
|
||||||
!(window->flags & SDL_WINDOW_BORDERLESS));
|
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));
|
||||||
|
}
|
||||||
|
|
||||||
sizehints = X11_XAllocSizeHints();
|
sizehints = X11_XAllocSizeHints();
|
||||||
/* Setup the normal size hints */
|
/* Setup the normal size hints */
|
||||||
|
|||||||
Reference in New Issue
Block a user