mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[client] wayland: fix mouse code post refactor
This commit is contained in:
parent
4e1c0cc0d0
commit
aafdec02df
@ -757,18 +757,11 @@ static void relativePointerMotionHandler(void * data,
|
|||||||
wl_fixed_t dxW, wl_fixed_t dyW, wl_fixed_t dxUnaccelW,
|
wl_fixed_t dxW, wl_fixed_t dyW, wl_fixed_t dxUnaccelW,
|
||||||
wl_fixed_t dyUnaccelW)
|
wl_fixed_t dyUnaccelW)
|
||||||
{
|
{
|
||||||
double dx, dy;
|
app_handleMouseRelitive(
|
||||||
if (app_cursorWantsRaw())
|
wl_fixed_to_double(dxW),
|
||||||
{
|
wl_fixed_to_double(dyW),
|
||||||
dx = wl_fixed_to_double(dxUnaccelW);
|
wl_fixed_to_double(dxUnaccelW),
|
||||||
dy = wl_fixed_to_double(dyUnaccelW);
|
wl_fixed_to_double(dyUnaccelW));
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
dx = wl_fixed_to_double(dxW);
|
|
||||||
dy = wl_fixed_to_double(dyW);
|
|
||||||
}
|
|
||||||
app_handleMouseGrabbed(dx, dy);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct zwp_relative_pointer_v1_listener relativePointerListener = {
|
static const struct zwp_relative_pointer_v1_listener relativePointerListener = {
|
||||||
|
Loading…
Reference in New Issue
Block a user