Skip to content

Commit 41039b4

Browse files
committed
wayland: Ensure that the main queue is dispatched when showing a libdecor window
There is no guarantee that libdecor will always dispatch the main queue (a future plugin may run on its own queue), so ensure that the main queue is still dispatched when showing a libdecor window, as is already the case when pumping events.
1 parent c84ac6d commit 41039b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video/wayland/SDL_waylandwindow.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,7 @@ void Wayland_ShowWindow(SDL_VideoDevice *_this, SDL_Window *window)
20282028
if (data->shell_surface.libdecor.frame) {
20292029
while (data->shell_surface_status == WAYLAND_SHELL_SURFACE_STATUS_WAITING_FOR_CONFIGURE) {
20302030
libdecor_dispatch(c->shell.libdecor, -1);
2031+
WAYLAND_wl_display_dispatch_pending(c->display);
20312032
}
20322033
}
20332034
} else

0 commit comments

Comments
 (0)