summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2019-08-14 11:39:28 +0200
committerHans de Goede <hdegoede@redhat.com>2019-08-14 12:00:10 +0200
commit782056adab160eb3554d43b2adfa5560d3ee3531 (patch)
tree206dd32ac87bffddfbfc86f70a81ec65207da826
parent05217066171992b0bc50882869aad6385285c878 (diff)
downloadmutter-782056adab160eb3554d43b2adfa5560d3ee3531.tar.gz
wayland/data-device: Use correct selection type to get mime types
When primary_offer_receive checks if the requested mime_type is supported, it should check against the list of mime-types supported by the primary-selection, instead of the list for the clipboard. This fixes primary selection copy paste from X11 apps to Wayland apps not working. Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/702
-rw-r--r--src/wayland/meta-wayland-data-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-data-device.c b/src/wayland/meta-wayland-data-device.c
index abdb615c8..ba9591ec1 100644
--- a/src/wayland/meta-wayland-data-device.c
+++ b/src/wayland/meta-wayland-data-device.c
@@ -520,7 +520,7 @@ primary_offer_receive (struct wl_client *client, struct wl_resource *resource,
gboolean found;
mime_types = meta_selection_get_mimetypes (meta_display_get_selection (display),
- META_SELECTION_CLIPBOARD);
+ META_SELECTION_PRIMARY);
found = g_list_find_custom (mime_types, mime_type, (GCompareFunc) g_strcmp0) != NULL;
g_list_free_full (mime_types, g_free);