[client] core: realign in the enter/focus handlers if possible

This commit is contained in:
Geoffrey McRae
2021-08-19 22:57:03 +10:00
parent e1a4401ffa
commit 17617cc421
3 changed files with 47 additions and 41 deletions

View File

@@ -112,7 +112,7 @@ void app_handleFocusEvent(bool focused)
g_state.ds->minimize();
}
g_cursor.realign = true;
core_setGuestCursorPos();
g_state.ds->realignPointer();
}
@@ -124,7 +124,7 @@ void app_handleEnterEvent(bool entered)
if (!core_inputEnabled())
return;
g_cursor.realign = true;
core_setGuestCursorPos();
}
else
{