wayland: Set the cursor visibility flag when using the cursor shape protocol
(cherry picked from commit 9ac523f940)
This commit is contained in:
1 file changed
+1
@@ -605,6 +605,7 @@ static int Wayland_ShowCursor(SDL_Cursor *cursor)
|
|||||||
if (!data->shm_data) {
|
if (!data->shm_data) {
|
||||||
if (input->cursor_shape) {
|
if (input->cursor_shape) {
|
||||||
Wayland_SetSystemCursorShape(input, data->system_cursor);
|
Wayland_SetSystemCursorShape(input, data->system_cursor);
|
||||||
|
input->cursor_visible = SDL_TRUE;
|
||||||
return 0;
|
return 0;
|
||||||
} else if (!wayland_get_system_cursor(d, data, &scale)) {
|
} else if (!wayland_get_system_cursor(d, data, &scale)) {
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in new issue
Block a user