mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 21:43:40 +00:00
[client] spice: fix failure to align and grab the pointer
This commit is contained in:
parent
3bccd9c45e
commit
e758f88519
@ -268,7 +268,7 @@ static void updatePositionInfo(void)
|
||||
if (!g_state.posInfoValid)
|
||||
{
|
||||
g_state.posInfoValid = true;
|
||||
alignToGuest();
|
||||
g_state.ds->realignPointer();
|
||||
}
|
||||
|
||||
done:
|
||||
@ -1535,7 +1535,7 @@ static void setGrabQuiet(bool enable)
|
||||
g_cursor.acc.x = 0.0;
|
||||
g_cursor.acc.y = 0.0;
|
||||
|
||||
/* if the display server does not support warp we need to grab the pointer
|
||||
/* if the display server does not support warp we need to ungrab the pointer
|
||||
* here instead of in the move handler */
|
||||
bool warpSupport = true;
|
||||
app_getProp(LG_DS_WARP_SUPPORT, &warpSupport);
|
||||
@ -1548,9 +1548,7 @@ static void setGrabQuiet(bool enable)
|
||||
if (params.grabKeyboard)
|
||||
g_state.ds->grabKeyboard();
|
||||
|
||||
if (!warpSupport)
|
||||
g_state.ds->grabPointer();
|
||||
|
||||
g_state.ds->grabPointer();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user