mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
clutter: Check that pointer has coordinates prior to repick
This might fail during initialization, or after first pointer interaction on a pointer-less (e.g. touch-only) session. Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2964 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3183>
This commit is contained in:
parent
88af55b857
commit
be3bca01a7
@ -3515,9 +3515,11 @@ void
|
||||
clutter_stage_repick_device (ClutterStage *stage,
|
||||
ClutterInputDevice *device)
|
||||
{
|
||||
graphene_point_t point;
|
||||
graphene_point_t point = GRAPHENE_POINT_INIT_ZERO;
|
||||
|
||||
if (!clutter_stage_get_device_coords (stage, device, NULL, &point))
|
||||
return;
|
||||
|
||||
clutter_stage_get_device_coords (stage, device, NULL, &point);
|
||||
clutter_stage_pick_and_update_device (stage,
|
||||
device,
|
||||
NULL, NULL,
|
||||
|
Loading…
Reference in New Issue
Block a user