Clipboard not fully working #196
|
Setup: I am trying to use the clipboard using code like: which copies the currently selected item from the comboox to the clipboard. When I do this, I checked KDE's clipboard history, does not show up. I open kwrite and paste, nothing happens. I added an fpg_edit to the app. Ran the copy and then CTRL-V into the edit and that worked. But kde apps still do not see it. I ran maximus as another test. I was able to copy and paste within the ide, but again kde apps did not see it. I also tried copying from my app and pasting into maximus and that did not work. It seems like the clipboard is just for the one app and nothing outside of the app. Is this a wayland or kde thing? Is there more to using the clipboard? Thanks |
Replies: 3 comments 14 replies
|
Hello. |
|
The x11 clipboard (on xwayland) is working for me |
|
Thanks Andrew — patch reviewed and applied, and thanks Steve for the report and for testing it. Landed on The diagnosis was spot onThree real fixes in there: UTF8_STRING in TARGETS — the actual cause. ICCCM refusal — making Empty-string guard — The One gap I filled inThe patch fixes copying out of fpGUI. Pasting in was still: XConvertSelection(..., XA_STRING, ...) // ICCCM: Latin-1while So Still worth testingSteve confirmed the write side. The part that would benefit from another pair of hands is the read side — pasting non-ASCII text into an fpGUI app from a browser or KWrite ( Two pre-existing issues I left alone, both predating this patch and worth their own fix:
Graeme |


@sfein1000 If you copy this to your clipboard and from the fpgui source folder do
wl-paste | patch -p1and recompile.If you don't have wl-paste you can just save it to a file and do
patch -p1 < the.patchfile.patch