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:
Bilal Elmoussaoui 2024-01-03 10:18:05 +01:00 committed by Marge Bot
parent d7db784b54
commit 50fd53d465

View File

@ -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);