diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c index 824e9aa93c..7c4c926ce8 100644 --- a/gdk/wayland/gdkdevice-wayland.c +++ b/gdk/wayland/gdkdevice-wayland.c @@ -4560,7 +4560,10 @@ tablet_pad_handle_leave (void *data, wp_tablet_pad, surface)); if (pad->current_tablet) - pad->current_tablet->pads = g_list_remove (pad->current_tablet->pads, pad); + { + pad->current_tablet->pads = g_list_remove (pad->current_tablet->pads, pad); + pad->current_tablet = NULL; + } } static void