# HG changeset patch # User Thomas Perl # Date 1535028458 -7200 # Thu Aug 23 14:47:38 2018 +0200 # Node ID 0de2d4e6f5ad43071d934180979cbdd4a66d346e # Parent 673ec0369266e72565870832037f51194cedffbb Fix "unresponsible application" issues in Wayland Polling without wl_display_flush() never responds to ping requests. In that case ping-pong works only on other events, such as user input or on frame swapped. From https://git.merproject.org/mer-core/libsdl/merge_requests/3 Original author: Alexander Akulich diff -r 673ec0369266 -r 0de2d4e6f5ad src/video/wayland/SDL_waylandevents.c --- a/src/video/wayland/SDL_waylandevents.c Wed Aug 22 21:48:28 2018 -0700 +++ b/src/video/wayland/SDL_waylandevents.c Thu Aug 23 14:47:38 2018 +0200 @@ -178,6 +178,8 @@ { SDL_VideoData *d = _this->driverdata; + WAYLAND_wl_display_flush(d->display); + if (SDL_IOReady(WAYLAND_wl_display_get_fd(d->display), SDL_FALSE, 0)) { WAYLAND_wl_display_dispatch(d->display); }