diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-05-10 20:28:42 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-05-13 18:09:59 +0200 |
commit | 19f08fbdbba113883c6011e4b8ccf3ea3a6eb57e (patch) | |
tree | c7aa005e9d72f3f6106be6485fa79a9f1070deda | |
parent | 40a3d67698dc992d084886e01b07a78d438bbf8e (diff) | |
download | mutter-19f08fbdbba113883c6011e4b8ccf3ea3a6eb57e.tar.gz |
xwayland: Use the right atom type for further selection requests to X11
If we translate between text/plain;charset-utf-8 from the wayland side to
UTF8_STRING on the X11 side, we want to continue all further X11 selection
requests using the same translated UTF8_STRING atom than we use in the
first XConvertSelection call.
https://bugzilla.gnome.org/show_bug.cgi?id=782472
-rw-r--r-- | src/wayland/meta-xwayland-selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland/meta-xwayland-selection.c b/src/wayland/meta-xwayland-selection.c index a78e84666..24b8cd2c1 100644 --- a/src/wayland/meta-xwayland-selection.c +++ b/src/wayland/meta-xwayland-selection.c @@ -829,7 +829,7 @@ meta_x11_source_send (MetaWaylandDataSource *source, /* Takes ownership of fd */ selection->x11_selection = x11_selection_data_new (compositor->xwayland_manager.selection_data, - fd, mime_type); + fd, gdk_x11_get_xatom_name (type_atom)); XConvertSelection (xdisplay, selection->selection_atom, type_atom, |