mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-27 00:56:27 +00:00
[client] spice: dont ignore input that doesn't exit the window
This commit is contained in:
parent
59ea957d0d
commit
d2a4f8f346
@ -966,16 +966,14 @@ static void handleMouseNormal(double ex, double ey)
|
|||||||
|
|
||||||
/* pre-empt the window leave flag if the warp will leave our window */
|
/* pre-empt the window leave flag if the warp will leave our window */
|
||||||
if (tx < 0 || ty < 0 || tx > g_state.windowW || ty > g_state.windowH)
|
if (tx < 0 || ty < 0 || tx > g_state.windowW || ty > g_state.windowH)
|
||||||
{
|
|
||||||
g_cursor.inWindow = false;
|
g_cursor.inWindow = false;
|
||||||
}
|
|
||||||
|
|
||||||
/* ungrab the pointer and move the local cursor to the exit point */
|
/* ungrab the pointer and move the local cursor to the exit point */
|
||||||
XUngrabPointer(g_state.wminfo.info.x11.display, CurrentTime);
|
XUngrabPointer(g_state.wminfo.info.x11.display, CurrentTime);
|
||||||
warpMouse(tx, ty, true);
|
warpMouse(tx, ty, true);
|
||||||
}
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int x, y;
|
int x, y;
|
||||||
cursorToInt(ex, ey, &x, &y);
|
cursorToInt(ex, ey, &x, &y);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user