[client] ds: refactor app and cursor state into app.c and core.c

This commit is contained in:
Geoffrey McRae committed 2021-02-21 10:31:48 +11:00
1 parent 33fed48277
commit 4e1c0cc0d0
7 files changed
+210 -219

No files matched your search

+2 -2
View File
@@ -87,7 +87,7 @@ static void lgInit(void)
g_cursor.guest.valid = false;
// if spice is not in use, hide the local cursor
if (!app_inputEnabled() && g_params.hideMouse)
if (!core_inputEnabled() && g_params.hideMouse)
g_state.ds->showPointer(false);
else
g_state.ds->showPointer(true);
@@ -296,7 +296,7 @@ static int cursorThread(void * unused)
g_cursor.guest.valid = true;
// if the state just became valid
if (valid != true && app_inputEnabled())
if (valid != true && core_inputEnabled())
{
core_alignToGuest();
app_resyncMouseBasic();