mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-01 14:53:47 +08:00
wayland: Disable warp emulation when restoring cursor visibility with the shape protocol
(cherry picked from commit 67f3a3ee54)
This commit is contained in:
@@ -605,7 +605,14 @@ 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;
|
input->cursor_visible = SDL_TRUE;
|
||||||
|
|
||||||
|
if (input->relative_mode_override) {
|
||||||
|
Wayland_input_unlock_pointer(input);
|
||||||
|
input->relative_mode_override = SDL_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
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