mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-25 09:17:12 +01:00
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
Block a user