wayland: Only dispatch on fullscreen set when the window is visible.

Fixes hang-on-startup described in #4572.
This commit is contained in:
Ethan Lee 2021-08-02 22:42:28 -04:00
parent 0f5b8a99f0
commit 7082fb04af
1 changed files with 1 additions and 1 deletions

View File

@ -962,7 +962,7 @@ Wayland_SetWindowFullscreen(_THIS, SDL_Window * window,
*
* -flibit
*/
if (viddata->shell.libdecor) {
if (viddata->shell.libdecor && (window->flags & SDL_WINDOW_SHOWN)) {
WAYLAND_wl_display_dispatch(viddata->display);
}
#endif