Browse Source

wayland: Set the cursor visibility flag when using the cursor shape protocol

(cherry picked from commit 9ac523f940572acd0f1fc9d5112c6470f53dac8c)
Frank Praznik 11 months ago
parent
commit
3794e3dc90
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/video/wayland/SDL_waylandmouse.c

+ 1 - 0
src/video/wayland/SDL_waylandmouse.c

@@ -605,6 +605,7 @@ static int Wayland_ShowCursor(SDL_Cursor *cursor)
         if (!data->shm_data) {
             if (input->cursor_shape) {
                 Wayland_SetSystemCursorShape(input, data->system_cursor);
+                input->cursor_visible = SDL_TRUE;
                 return 0;
             } else if (!wayland_get_system_cursor(d, data, &scale)) {
                 return -1;