mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[client] wayland: avoid protocol error when warping in capture mode
When using locked pointer (i.e. capture mode), it doesn't make sense to warp the cursor, so we disable it. This fixes #540.
This commit is contained in:
parent
fd531bd39b
commit
9db3cd7b51
@ -422,7 +422,7 @@ void waylandUngrabKeyboard(void)
|
|||||||
|
|
||||||
void waylandWarpPointer(int x, int y, bool exiting)
|
void waylandWarpPointer(int x, int y, bool exiting)
|
||||||
{
|
{
|
||||||
if (!wlWm.pointerInSurface)
|
if (!wlWm.pointerInSurface || wlWm.lockedPointer)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (x < 0) x = 0;
|
if (x < 0) x = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user