SciTE 5.3.1 pasting to other applications broken with 3.24.35 on Wayland
When using SciTE with 3.24.35 on Wayland pasting text to other Wayland applications does not work.
Change that caused this: 0c1ea922 ("wayland: Translate STRING/UTF8_STRING selection atoms to mimetypes", 2022-10-03)
confirmed by building 3.24.35 with this change reverted.
Problem can also be resolved by building SciTE 5.3.1 with this patch to Scintilla:
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -123,6 +123,8 @@
const GtkTargetEntry clipboardCopyTargets[] = {
{ (gchar *) "UTF8_STRING", 0, TARGET_UTF8_STRING },
{ (gchar *) "STRING", 0, TARGET_STRING },
+ { (gchar *) "text/plain;charset=utf-8", 0, TARGET_UTF8_STRING },
+ { (gchar *) "text/plain", 0, TARGET_STRING },
};
constexpr gint nClipboardCopyTargets = static_cast<gint>(std::size(clipboardCopyTargets));
@@ -130,6 +132,8 @@
{ (gchar *) "text/uri-list", 0, TARGET_URI },
{ (gchar *) "UTF8_STRING", 0, TARGET_UTF8_STRING },
{ (gchar *) "STRING", 0, TARGET_STRING },
+ { (gchar *) "text/plain;charset=utf-8", 0, TARGET_UTF8_STRING },
+ { (gchar *) "text/plain", 0, TARGET_STRING },
};
constexpr gint nClipboardPasteTargets = static_cast<gint>(std::size(clipboardPasteTargets));
from https://sourceforge.net/p/scintilla/bugs/2361/#ec34
original file: https://sourceforge.net/p/scintilla/code/ci/default/tree/gtk/ScintillaGTK.cxx#l123