|
|
@@ -495,9 +495,7 @@ void Wayland_SendWakeupEvent(SDL_VideoDevice *_this, SDL_Window *window)
|
|
|
{
|
|
|
SDL_VideoData *d = _this->internal;
|
|
|
|
|
|
- /* Queue a sync event to unblock the event queue fd if it's empty and being waited on.
|
|
|
- * TODO: Maybe use a pipe to avoid the compositor roundtrip?
|
|
|
- */
|
|
|
+ // Queue a sync event to unblock the main event queue if it's being waited on.
|
|
|
struct wl_callback *cb = wl_display_sync(d->display);
|
|
|
wl_callback_add_listener(cb, &sync_listener, NULL);
|
|
|
WAYLAND_wl_display_flush(d->display);
|