[client] always show the cursor when not using spice (fixes #409)

This commit is contained in:
Geoffrey McRae 2021-01-20 00:28:27 +11:00
parent 2bfcfa36df
commit 31eafee468

View file

@ -394,7 +394,7 @@ static int cursorThread(void * unused)
g_state.lgr->on_mouse_event
(
g_state.lgrData,
g_cursor.guest.visible && g_cursor.draw,
g_cursor.guest.visible && (g_cursor.draw || !params.useSpiceInput),
g_cursor.guest.x,
g_cursor.guest.y
);
@ -484,7 +484,7 @@ static int cursorThread(void * unused)
g_state.lgr->on_mouse_event
(
g_state.lgrData,
g_cursor.guest.visible && g_cursor.draw,
g_cursor.guest.visible && (g_cursor.draw || !params.useSpiceInput),
g_cursor.guest.x,
g_cursor.guest.y
);
@ -1743,8 +1743,11 @@ static void register_key_binds(void)
g_state.kbFS = app_register_keybind(KEY_F , toggle_fullscreen, NULL);
g_state.kbVideo = app_register_keybind(KEY_V , toggle_video , NULL);
g_state.kbRotate = app_register_keybind(KEY_R , toggle_rotate , NULL);
g_state.kbInput = app_register_keybind(KEY_I , toggle_input , NULL);
g_state.kbQuit = app_register_keybind(KEY_Q , quit , NULL);
if (params.useSpiceInput)
{
g_state.kbInput = app_register_keybind(KEY_I , toggle_input , NULL);
g_state.kbMouseSensInc = app_register_keybind(KEY_INSERT, mouse_sens_inc , NULL);
g_state.kbMouseSensDec = app_register_keybind(KEY_DELETE, mouse_sens_dec , NULL);
@ -1764,6 +1767,7 @@ static void register_key_binds(void)
g_state.kbPass[0] = app_register_keybind(KEY_LEFTMETA , key_passthrough, NULL);
g_state.kbPass[1] = app_register_keybind(KEY_RIGHTMETA, key_passthrough, NULL);
}
}
static void release_key_binds(void)
{