Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set clipboard contents when selecting text — Xorg implicit/passive clipboard interaction #262

Closed
benthor opened this issue May 3, 2021 · 4 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@benthor
Copy link

benthor commented May 3, 2021

I'm a long time Xorg user and I prefer to interact with my clipboard passively/implicitly by simply selecting text and middle-mouse-buttoning it somewhere else. I often interact with browser URL bars like this, but Lagrange only appears to copy selected text to clipboard after you hit Ctrl+C. Pasting using the MMB appears to work decently enough though.

@skyjake
Copy link
Owner

skyjake commented May 3, 2021

This sounds like the same issue as #162. Do you agree?

@benthor
Copy link
Author

benthor commented May 3, 2021

#162 is indeed related. From an admittedly selfish perspective, I feel that my particular issue might be resolved by simply calling SDL_SetClipboardText() once a selection is made, without waiting for a keyboard trigger. This would cause the selection to end up in the primary clipboard and represent standard Xorg convention. Dealing with Ctrl+C in the way that people seem to expect appears to be more work.

@benthor
Copy link
Author

benthor commented May 3, 2021

@skyjake skyjake changed the title Support implicit/passive clipboard interaction (Xorg) Set clipboard contents when selecting text — Xorg implicit/passive clipboard interaction May 4, 2021
@skyjake skyjake added enhancement New feature or request duplicate This issue or pull request already exists labels May 4, 2021
@skyjake
Copy link
Owner

skyjake commented May 4, 2021

issue might be resolved by simply calling SDL_SetClipboardText() once a selection is made

That could work some of the time / for some people, but I think that it's better to follow the convention fully, as suggested in #162.

Closing as duplicate of #162.

@skyjake skyjake closed this as completed May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants