mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-23 07:48:09 +00:00
[client] wayland: synchronize host cursor position with guest
This mirrors the x11 implementation, allowing the pointer to move correctly into overlapping windows.
This commit is contained in:
@@ -413,3 +413,11 @@ void waylandRealignPointer(void)
|
||||
if (!wlWm.warpSupport)
|
||||
app_resyncMouseBasic();
|
||||
}
|
||||
|
||||
void waylandGuestPointerUpdated(double x, double y, int localX, int localY)
|
||||
{
|
||||
if (!wlWm.warpSupport || !wlWm.pointerInSurface)
|
||||
return;
|
||||
|
||||
waylandWarpPointer(localX, localY, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user