mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 13:07:54 +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
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ void waylandUngrabKeyboard(void)
|
|||
|
||||
void waylandWarpPointer(int x, int y, bool exiting)
|
||||
{
|
||||
if (!wlWm.pointerInSurface)
|
||||
if (!wlWm.pointerInSurface || wlWm.lockedPointer)
|
||||
return;
|
||||
|
||||
if (x < 0) x = 0;
|
||||
|
|
Loading…
Reference in a new issue