diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index cb3de128c98c0e..e635f27e550812 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -44,6 +44,7 @@ #include "tablet-unstable-v2-client-protocol.h" #include "primary-selection-unstable-v1-client-protocol.h" #include "webos-input-manager-client-protocol.h" +#include "starfish-client-protocol.h" #ifdef HAVE_LIBDECOR_H #include @@ -2776,6 +2777,14 @@ int Wayland_input_lock_pointer(struct SDL_WaylandInput *input) SDL_Window *window; struct zwp_relative_pointer_v1 *relative_pointer; +#ifdef SDL_VIDEO_DRIVER_WAYLAND_WEBOS + if (d->starfish_pointer) { + SDL_Mouse *mouse = SDL_GetMouse(); + wl_starfish_pointer_set_cursor_position(d->starfish_pointer, mouse->x, mouse->y); + return 0; + } +#endif + if (!d->relative_pointer_manager) { return -1; }