From e2d6b33b61657913183fa0b5bfede68cf02613e8 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 20 Nov 2019 00:29:01 +0100 Subject: [PATCH] wayland: Avoid redundant cancel() call This is unnecessary as we are unsetting the DnD selection owner, and will result in the related data source being cancelled already. https://gitlab.gnome.org/GNOME/mutter/issues/591 (cherry picked from commit e7b2f9603e90d87092c9e755c176f1244a8b3e36) --- src/wayland/meta-wayland-data-device.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c index 6795bf0e7..c7384d2c8 100644 --- a/src/wayland/meta-wayland-data-device.c +++ b/src/wayland/meta-wayland-data-device.c @@ -1059,7 +1059,6 @@ drag_grab_button (MetaWaylandPointerGrab *grab, } else { - meta_wayland_data_source_cancel (source); meta_wayland_data_source_set_current_offer (source, NULL); meta_wayland_data_device_set_dnd_source (&seat->data_device, NULL); unset_selection_source (&seat->data_device, META_SELECTION_DND);