mirror of
https://github.com/brl/mutter.git
synced 2025-02-08 17:44:09 +00:00
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
This commit is contained in:
parent
46b3811e22
commit
e7b2f9603e
@ -1068,7 +1068,6 @@ drag_grab_button (MetaWaylandPointerGrab *grab,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
meta_wayland_data_source_cancel (source);
|
|
||||||
meta_wayland_data_source_set_current_offer (source, NULL);
|
meta_wayland_data_source_set_current_offer (source, NULL);
|
||||||
meta_wayland_data_device_set_dnd_source (&seat->data_device, NULL);
|
meta_wayland_data_device_set_dnd_source (&seat->data_device, NULL);
|
||||||
unset_selection_source (&seat->data_device, META_SELECTION_DND);
|
unset_selection_source (&seat->data_device, META_SELECTION_DND);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user