diff --git a/src/video/wayland/SDL_waylandmouse.c b/src/video/wayland/SDL_waylandmouse.c index 3247da6e2c80a..ab78b33930f98 100644 --- a/src/video/wayland/SDL_waylandmouse.c +++ b/src/video/wayland/SDL_waylandmouse.c @@ -632,6 +632,7 @@ static int Wayland_ShowCursor(SDL_Cursor *cursor) while (curr) { if (curr->pointer_focus && focus == curr->pointer_focus->sdlwindow) { pointer_enter_serial = curr->pointer_enter_serial; + pointer = curr->pointer; break; } curr = curr->next;