Sfoglia il codice sorgente

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 <a.akulich@omprussia.ru>
Thomas Perl 6 anni fa
parent
commit
84e7832018
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/video/wayland/SDL_waylandevents.c

+ 2 - 0
src/video/wayland/SDL_waylandevents.c

@@ -178,6 +178,8 @@ Wayland_PumpEvents(_THIS)
 {
     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);
     }