mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +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:
parent
d0a12f6097
commit
ee380451ca
@ -106,7 +106,3 @@ void waylandShowPointer(bool show)
|
|||||||
wlWm.showPointer = show;
|
wlWm.showPointer = show;
|
||||||
wl_pointer_set_cursor(wlWm.pointer, wlWm.pointerEnterSerial, show ? wlWm.cursor : NULL, 0, 0);
|
wl_pointer_set_cursor(wlWm.pointer, wlWm.pointerEnterSerial, show ? wlWm.cursor : NULL, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void waylandGuestPointerUpdated(double x, double y, int localX, int localY)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
@ -413,3 +413,11 @@ void waylandRealignPointer(void)
|
|||||||
if (!wlWm.warpSupport)
|
if (!wlWm.warpSupport)
|
||||||
app_resyncMouseBasic();
|
app_resyncMouseBasic();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void waylandGuestPointerUpdated(double x, double y, int localX, int localY)
|
||||||
|
{
|
||||||
|
if (!wlWm.warpSupport || !wlWm.pointerInSurface)
|
||||||
|
return;
|
||||||
|
|
||||||
|
waylandWarpPointer(localX, localY, false);
|
||||||
|
}
|
||||||
|
@ -190,7 +190,6 @@ void waylandCBRelease(void);
|
|||||||
// cursor module
|
// cursor module
|
||||||
bool waylandCursorInit(void);
|
bool waylandCursorInit(void);
|
||||||
void waylandCursorFree(void);
|
void waylandCursorFree(void);
|
||||||
void waylandGuestPointerUpdated(double x, double y, int localX, int localY);
|
|
||||||
void waylandShowPointer(bool show);
|
void waylandShowPointer(bool show);
|
||||||
|
|
||||||
// gl module
|
// gl module
|
||||||
@ -228,6 +227,7 @@ void waylandUngrabKeyboard(void);
|
|||||||
void waylandUngrabPointer(void);
|
void waylandUngrabPointer(void);
|
||||||
void waylandRealignPointer(void);
|
void waylandRealignPointer(void);
|
||||||
void waylandWarpPointer(int x, int y, bool exiting);
|
void waylandWarpPointer(int x, int y, bool exiting);
|
||||||
|
void waylandGuestPointerUpdated(double x, double y, int localX, int localY);
|
||||||
|
|
||||||
// output module
|
// output module
|
||||||
bool waylandOutputInit(void);
|
bool waylandOutputInit(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user