mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 03:26:15 +08:00
wayland: Fix some comments
Fix grammar, and remove a TODO that is no longer relevant with an event thread.
This commit is contained in:
@@ -499,9 +499,7 @@ void Wayland_SendWakeupEvent(SDL_VideoDevice *_this, SDL_Window *window)
|
|||||||
{
|
{
|
||||||
SDL_VideoData *d = _this->internal;
|
SDL_VideoData *d = _this->internal;
|
||||||
|
|
||||||
/* Queue a sync event to unblock the event queue fd if it's empty and being waited on.
|
// Queue a sync event to unblock the main event queue if it's being waited on.
|
||||||
* TODO: Maybe use a pipe to avoid the compositor roundtrip?
|
|
||||||
*/
|
|
||||||
struct wl_callback *cb = wl_display_sync(d->display);
|
struct wl_callback *cb = wl_display_sync(d->display);
|
||||||
wl_callback_add_listener(cb, &sync_listener, NULL);
|
wl_callback_add_listener(cb, &sync_listener, NULL);
|
||||||
WAYLAND_wl_display_flush(d->display);
|
WAYLAND_wl_display_flush(d->display);
|
||||||
|
|||||||
@@ -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
|
/* 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user