[mutter] wayland/data-device: Use correct selection type to get mime types
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] wayland/data-device: Use correct selection type to get mime types
- Date: Wed, 14 Aug 2019 14:34:25 +0000 (UTC)
commit 782056adab160eb3554d43b2adfa5560d3ee3531
Author: Hans de Goede <hdegoede redhat com>
Date: Wed Aug 14 11:39:28 2019 +0200
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
src/wayland/meta-wayland-data-device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]