mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 15:08:31 +00:00
wayland: Only dispatch on fullscreen set when the window is visible.
Fixes hang-on-startup described in #4572.
This commit is contained in:
@@ -962,7 +962,7 @@ Wayland_SetWindowFullscreen(_THIS, SDL_Window * window,
|
|||||||
*
|
*
|
||||||
* -flibit
|
* -flibit
|
||||||
*/
|
*/
|
||||||
if (viddata->shell.libdecor) {
|
if (viddata->shell.libdecor && (window->flags & SDL_WINDOW_SHOWN)) {
|
||||||
WAYLAND_wl_display_dispatch(viddata->display);
|
WAYLAND_wl_display_dispatch(viddata->display);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user