mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +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)
|
if (!g_state.posInfoValid)
|
||||||
{
|
{
|
||||||
g_state.posInfoValid = true;
|
g_state.posInfoValid = true;
|
||||||
alignToGuest();
|
g_state.ds->realignPointer();
|
||||||
}
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
@ -1535,7 +1535,7 @@ static void setGrabQuiet(bool enable)
|
|||||||
g_cursor.acc.x = 0.0;
|
g_cursor.acc.x = 0.0;
|
||||||
g_cursor.acc.y = 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 */
|
* here instead of in the move handler */
|
||||||
bool warpSupport = true;
|
bool warpSupport = true;
|
||||||
app_getProp(LG_DS_WARP_SUPPORT, &warpSupport);
|
app_getProp(LG_DS_WARP_SUPPORT, &warpSupport);
|
||||||
@ -1548,9 +1548,7 @@ static void setGrabQuiet(bool enable)
|
|||||||
if (params.grabKeyboard)
|
if (params.grabKeyboard)
|
||||||
g_state.ds->grabKeyboard();
|
g_state.ds->grabKeyboard();
|
||||||
|
|
||||||
if (!warpSupport)
|
|
||||||
g_state.ds->grabPointer();
|
g_state.ds->grabPointer();
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user