mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 09:26:25 +00:00
video: wayland: Roundtrip after falling back to libdecor in xdg-decoration handler
Otherwise libdecor doesn't have a chance to acquire xdg-toplevel after libdecor_new before we attempt to use it in Wayland_ShowWindow. Fixes #5952
This commit is contained in:

committed by
Ethan Lee

parent
fc2497b109
commit
405d1f6598
@@ -734,6 +734,7 @@ handle_configure_zxdg_decoration(void *data,
|
|||||||
/* libdecor isn't available, so no borders for you... oh well */
|
/* libdecor isn't available, so no borders for you... oh well */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
WAYLAND_wl_display_roundtrip(driverdata->waylandData->display);
|
||||||
SDL_HideWindow(window);
|
SDL_HideWindow(window);
|
||||||
driverdata->shell_surface_type = WAYLAND_SURFACE_LIBDECOR;
|
driverdata->shell_surface_type = WAYLAND_SURFACE_LIBDECOR;
|
||||||
SDL_ShowWindow(window);
|
SDL_ShowWindow(window);
|
||||||
|
Reference in New Issue
Block a user