Merge branch 'wip/carlosg/tablet-disconnects' into 'gtk-3-24'

gdk/wayland: Handle disorderly tablet/pad disconnects

See merge request GNOME/gtk!1909
This commit is contained in:
Matthias Clasen
2020-05-15 19:30:36 +00:00

View File

@@ -2816,6 +2816,14 @@ _gdk_wayland_seat_remove_tablet (GdkWaylandSeat *seat,
zwp_tablet_v2_destroy (tablet->wp_tablet);
while (tablet->pads)
{
GdkWaylandTabletPadData *pad = tablet->pads->data;
pad->current_tablet = NULL;
tablet->pads = g_list_remove (tablet->pads, pad);
}
device_manager->devices =
g_list_remove (device_manager->devices, tablet->master);
device_manager->devices =