mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-22 11:48:10 +00:00
[client] always show the cursor when not using spice (fixes #409)
This commit is contained in:
parent
2bfcfa36df
commit
31eafee468
1 changed files with 23 additions and 19 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue