mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
x11/seat: Initialize group/mode for pad events
Otherwise, if Mutter is built without libwacom, garbage values would be
passed to clutter_event_pad_button_new
Closes https://gitlab.gnome.org/GNOME/mutter/-/issues/3227
Fixes: 1611979fa
("x11: Implement ClutterSeat")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3479>
This commit is contained in:
parent
d7db784b54
commit
50fd53d465
@ -2206,7 +2206,7 @@ meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
||||
|
||||
if (clutter_input_device_get_device_type (source_device) == CLUTTER_PAD_DEVICE)
|
||||
{
|
||||
uint32_t button, group, mode;
|
||||
uint32_t button, group = 0, mode = 0;
|
||||
|
||||
/* We got these events because of the passive button grab */
|
||||
XIAllowEvents (xdisplay, xev->sourceid, XIAsyncDevice, xev->time);
|
||||
|
Loading…
Reference in New Issue
Block a user