diff options
author | Yuuki Harano <masm+github@masm11.me> | 2021-02-20 17:48:11 +0900 |
---|---|---|
committer | Yuuki Harano <masm+github@masm11.me> | 2021-02-20 17:48:11 +0900 |
commit | 949d3e50ec4ea7723bf14b93b66ad0b72f96f163 (patch) | |
tree | d90cad82615dc071d76590612f844284c247a45e /src/pgtkselect.c | |
parent | f094806ffb78487f9d11773134dfbebea2bd95dd (diff) | |
download | emacs-949d3e50ec4ea7723bf14b93b66ad0b72f96f163.tar.gz |
Work around I can't copy and paste unicode string to wayland chromium
* src/pgtkselect.c (Fpgtk_own_selection_internal):
Remove text/plain, since unicode strings are not correctly
encoded/decoded between Gtk and chromium(wayland) with it.
Diffstat (limited to 'src/pgtkselect.c')
-rw-r--r-- | src/pgtkselect.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pgtkselect.c b/src/pgtkselect.c index 2d81d1274ca..469e42f8165 100644 --- a/src/pgtkselect.c +++ b/src/pgtkselect.c @@ -371,6 +371,12 @@ nil, it defaults to the selected frame. */) list = gtk_target_list_new (NULL, 0); gtk_target_list_add_text_targets (list, 0); + { + /* text/plain: Strings encoded by Gtk are not correctly decoded by Chromium(Wayland). */ + GdkAtom atom_text_plain = gdk_atom_intern("text/plain", false); + gtk_target_list_remove(list, atom_text_plain); + } + targets = gtk_target_table_new_from_list (list, &n_targets); int size = SBYTES (value); |