From c1bf0e9de9fe4a14bb834a368b624f281614e69b Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Thu, 16 Apr 2026 10:14:46 -0400 Subject: [PATCH] wayland: Fix some comments Fix grammar, and remove a TODO that is no longer relevant with an event thread. --- src/video/wayland/SDL_waylandevents.c | 4 +--- src/video/wayland/SDL_waylandkeyboard.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index 05298cfa57..0f95d6d6a8 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -499,9 +499,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); diff --git a/src/video/wayland/SDL_waylandkeyboard.c b/src/video/wayland/SDL_waylandkeyboard.c index f604a7e3df..ac0558877d 100644 --- a/src/video/wayland/SDL_waylandkeyboard.c +++ b/src/video/wayland/SDL_waylandkeyboard.c @@ -186,7 +186,7 @@ bool Wayland_StartTextInput(SDL_VideoDevice *_this, SDL_Window *window, SDL_Prop } /* Always return true, even if the text input protocol isn't supported, as basic - * text can still be obtained from individual keys and composition system. + * text can still be obtained from keysyms and the composition system. */ return true; }