mirror of https://github.com/encounter/SDL.git
wayland: Only dispatch on fullscreen set when the window is visible.
Fixes hang-on-startup described in #4572.
This commit is contained in:
parent
0f5b8a99f0
commit
7082fb04af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue