mirror of
https://github.com/brl/mutter.git
synced 2025-02-05 16:14:10 +00:00
backends/native: Pass the axes down to the relative clutter motion event
Otherwise we get a happy segfault when we're trying broadcast_axis() during the tablet event handling. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3410>
This commit is contained in:
parent
9e781545aa
commit
01f78c0451
@ -577,7 +577,8 @@ meta_seat_impl_notify_relative_motion_in_impl (MetaSeatImpl *seat_impl,
|
|||||||
float dx,
|
float dx,
|
||||||
float dy,
|
float dy,
|
||||||
float dx_unaccel,
|
float dx_unaccel,
|
||||||
float dy_unaccel)
|
float dy_unaccel,
|
||||||
|
double *axes)
|
||||||
{
|
{
|
||||||
MetaInputDeviceNative *device_native =
|
MetaInputDeviceNative *device_native =
|
||||||
META_INPUT_DEVICE_NATIVE (input_device);
|
META_INPUT_DEVICE_NATIVE (input_device);
|
||||||
@ -635,7 +636,7 @@ meta_seat_impl_notify_relative_motion_in_impl (MetaSeatImpl *seat_impl,
|
|||||||
dy_unaccel),
|
dy_unaccel),
|
||||||
GRAPHENE_POINT_INIT (dx_constrained,
|
GRAPHENE_POINT_INIT (dx_constrained,
|
||||||
dy_constrained),
|
dy_constrained),
|
||||||
NULL);
|
axes);
|
||||||
|
|
||||||
queue_event (seat_impl, event);
|
queue_event (seat_impl, event);
|
||||||
}
|
}
|
||||||
@ -1358,7 +1359,8 @@ notify_relative_tool_motion_in_impl (ClutterInputDevice *input_device,
|
|||||||
time_us,
|
time_us,
|
||||||
dx, dy,
|
dx, dy,
|
||||||
/* FIXME */
|
/* FIXME */
|
||||||
dx, dy);
|
dx, dy,
|
||||||
|
axes);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2131,7 +2133,8 @@ process_device_event (MetaSeatImpl *seat_impl,
|
|||||||
device,
|
device,
|
||||||
time_us,
|
time_us,
|
||||||
dx, dy,
|
dx, dy,
|
||||||
dx_unaccel, dy_unaccel);
|
dx_unaccel, dy_unaccel,
|
||||||
|
NULL);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,8 @@ void meta_seat_impl_notify_relative_motion_in_impl (MetaSeatImpl *seat_imp
|
|||||||
float dx,
|
float dx,
|
||||||
float dy,
|
float dy,
|
||||||
float dx_unaccel,
|
float dx_unaccel,
|
||||||
float dy_unaccel);
|
float dy_unaccel,
|
||||||
|
double *axes);
|
||||||
|
|
||||||
void meta_seat_impl_notify_absolute_motion_in_impl (MetaSeatImpl *seat_impl,
|
void meta_seat_impl_notify_absolute_motion_in_impl (MetaSeatImpl *seat_impl,
|
||||||
ClutterInputDevice *input_device,
|
ClutterInputDevice *input_device,
|
||||||
|
@ -226,7 +226,8 @@ notify_relative_motion_in_impl (GTask *task)
|
|||||||
virtual_evdev->impl_state->device,
|
virtual_evdev->impl_state->device,
|
||||||
event->time_us,
|
event->time_us,
|
||||||
event->x, event->y,
|
event->x, event->y,
|
||||||
event->x, event->y);
|
event->x, event->y,
|
||||||
|
NULL);
|
||||||
g_task_return_boolean (task, TRUE);
|
g_task_return_boolean (task, TRUE);
|
||||||
return G_SOURCE_REMOVE;
|
return G_SOURCE_REMOVE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user