Skip to content
This repository has been archived by the owner on Oct 29, 2018. It is now read-only.

X11 primary selection doesn't work with scud #555

Open
zerthimon opened this issue Apr 6, 2017 · 11 comments
Open

X11 primary selection doesn't work with scud #555

zerthimon opened this issue Apr 6, 2017 · 11 comments

Comments

@zerthimon
Copy link

zerthimon commented Apr 6, 2017

Latest version on ubuntu 16.04, unity

Try selecting something in some other window and then use a middle mouse button to paste it to scud - it pastes something else.

@raelgc
Copy link
Owner

raelgc commented Apr 6, 2017

There is Qt5 doc at https://doc.qt.io/qt-5/qclipboard.html#Mode-enum, maybe we can try force to use the mouse selection. Hope this do not disable the general clipboard.

@zerthimon
Copy link
Author

Hmm, this used to work previously.

@raelgc
Copy link
Owner

raelgc commented Apr 7, 2017

Probably is qt5 (which the latest version is based) handling different. I'll test.

@shevek
Copy link

shevek commented Apr 19, 2017

I actually came here to report exactly this bug. scudcloud always pastes the clipboard, not the primary selection. If I paste into a text editor, then ^C-copy to the clipboard, then scudcloud pastes it. But now I can't paste out of xterm.

@UnitedMarsupials-zz
Copy link

Pasting out of Scudcloud does not work as an X11-user would expect either. When I right-click on a link and ask for it to be "copied", it is not placed onto the primary. Doing the middle-button paste into browser fails...

Other apps do it -- for example, doing the same in Thunderbird and Firefox, for example, works as expected. This link may be useful...

@raelgc
Copy link
Owner

raelgc commented Jul 11, 2017

Hi @UnitedMarsupials, thanks for the feedback.

Unfortunately, Scudcloud has no code dedicated to copy and paste: we're using the standard Qt copy & paste functionality.

It was working with both clipboards as intended months ago, but after the past upgrades, Qt changed this.

@UnitedMarsupials-zz
Copy link

There may be some sort of a flag to pass to Qt, perhaps?

@raelgc
Copy link
Owner

raelgc commented Jul 11, 2017

@UnitedMarsupials If I correctly understood, only when setting data to the clipboard: https://doc.qt.io/qt-5/qclipboard.html#Mode-enum

@UnitedMarsupials-zz
Copy link

Sorry, I'm not a GUI expert at all :-( And I certainly never programmed with Qt -- my sole ventures into GUI were using Tcl/Tk... But this can't be affecting only Scudcloud -- other users of Qt (and/or Python Qt) must've encountered this issue and discussed it. I'm sure, the solution is known by now :)

@UnitedMarsupials-zz
Copy link

Sorry, any hope for a fix for this? It is really annoying to, when trying to copy-paste from xterm, have to copy into an editor first, and then ctrl-c/ctrl-v from the editor into scudcloud...

@maciex
Copy link
Contributor

maciex commented Oct 25, 2018

This problem still exists in v1.6.5 on Fedora 28.
Any plans or ideas on fixing this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants