mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 13:07:46 +00:00
[client] input: fix confine_pointer argument marshalling
Under Wayland, if the mouse pointer is disconnected whilst captured (like say via KVM switch), the waylandWarpPointer code will be called but the pointer will be NULL. This results in the cryptic message: error marshalling arguments for confine_pointer (signature noo?ou): null value passed for arg 2 Error marshalling request: Invalid argument This patch adds a check on the wlWm.pointer pointer before attempting to warp the pointer, and avoids the crash.
This commit is contained in:
parent
88d60d4b3d
commit
48cf099638
1
AUTHORS
1
AUTHORS
@ -58,3 +58,4 @@ RTXUX <wyf@rtxux.xyz> (RTXUX)
|
||||
Vincent LaRocca <vincentmlarocca@gmail.com> (VMFortress)
|
||||
Johnathon Paul Weaver <weaver123_johnathon@hotmail.com> (8BallBomBom)
|
||||
Chris Spencer <spencercw@gmail.com> (spencercw)
|
||||
Mark Boorer <markboo99@gmail.com> (Shootfast)
|
||||
|
@ -616,7 +616,10 @@ void waylandRealignPointer(void)
|
||||
|
||||
void waylandGuestPointerUpdated(double x, double y, double localX, double localY)
|
||||
{
|
||||
if (!wlWm.warpSupport || !wlWm.pointerInSurface || wlWm.lockedPointer)
|
||||
if ( !wlWm.pointer ||
|
||||
!wlWm.warpSupport ||
|
||||
!wlWm.pointerInSurface ||
|
||||
wlWm.lockedPointer )
|
||||
return;
|
||||
|
||||
waylandWarpPointer((int) localX, (int) localY, false);
|
||||
|
Loading…
Reference in New Issue
Block a user