SDL: wayland: Set the cursor visibility flag when using the cursor shape protocol (3794e)

From 3794e3dc90d5c9306faa22766028062dcac59a63 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Thu, 16 May 2024 11:54:03 -0400
Subject: [PATCH] wayland: Set the cursor visibility flag when using the cursor
 shape protocol

(cherry picked from commit 9ac523f940572acd0f1fc9d5112c6470f53dac8c)
---
 src/video/wayland/SDL_waylandmouse.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/video/wayland/SDL_waylandmouse.c b/src/video/wayland/SDL_waylandmouse.c
index 4913ac8ce80f4..ceb6b243f3289 100644
--- a/src/video/wayland/SDL_waylandmouse.c
+++ b/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;