mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +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
|
* -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
|
||||||
|
Loading…
Reference in New Issue
Block a user