Bug 461301 - Cannot paste from Scintilla GTK widget to KDE apps
Summary: Cannot paste from Scintilla GTK widget to KDE apps
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.26.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://sourceforge.net/p/scintilla/b...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-01 22:28 UTC by Alexander Kernozhitsky
Modified: 2022-11-04 16:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kernozhitsky 2022-11-01 22:28:00 UTC
SUMMARY

If I try to copy some text from Scintilla widget and paste it into a KDE app, then nothing is pasted. Though, pasting into XWayland or GTK apps works fine.

The bug is reproducible both with Geany 1.38 ( https://github.com/geany/geany/issues/3320 ) and SciTE 5.3.1.

See also: https://sourceforge.net/p/scintilla/bugs/2361/. Quoting a Scintilla maintainer,

> Copying the path with the File | Copy Path command does copy to Kate. That is using the simpler gtk_clipboard_set_text API instead of gtk_clipboard_set_with_data which is called in Scintilla to allow multiple formats and asynchronous access. Its likely that the current KDE implementation on Wayland has a problem with this API or its use. Since it works with GTK applications on Debian + Wayland and also with KDE applications on Ubuntu + Wayland, I'd hope that it gets fixed with updates to KDE's Wayland support.

STEPS TO REPRODUCE
1. Open Plasma Wayland session
2. Open a Scintilla-based editor (SciTE or Geany)
3. Enter some text and copy it to the clipboard
4. Paste into a KDE app (e.g. Kate)

OBSERVED RESULT
No text is pasted.

EXPECTED RESULT
Copied test must be pasted into the KDE app.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Comment 1 Alexander Kernozhitsky 2022-11-01 23:08:54 UTC
Another observation is that the text copied from Scintilla is not shown in Klipper history. Still, it can be pasted successfully into GTK apps.
Comment 2 Alexander Kernozhitsky 2022-11-02 22:34:49 UTC
The bug seems to be on the Scintilla side, see https://sourceforge.net/p/scintilla/bugs/2361/#ec34 for more details.
Comment 3 Nate Graham 2022-11-04 16:23:41 UTC
Thanks for following up!