From 50fd53d46530ebc109a87ef6fdacb6d6c119b430 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Wed, 3 Jan 2024 10:18:05 +0100 Subject: [PATCH] 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: --- src/backends/x11/meta-seat-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/x11/meta-seat-x11.c b/src/backends/x11/meta-seat-x11.c index 487897b3e..0f872fc11 100644 --- a/src/backends/x11/meta-seat-x11.c +++ b/src/backends/x11/meta-seat-x11.c @@ -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);