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

On linux provide global var Primary which allow to choose primary mode #21

Merged
merged 1 commit into from
Dec 29, 2017

Conversation

uvelichitel
Copy link
Contributor

Issue #17 Add middle click paste support on linux.
In clipboard_unix.go (which compiled ander linux only) provide global var Primary bool. Setting it true will make xclip and xsel use Xserver's default primary selection mode just by not providing additional -selection args xsel(1) xclip(1). Otherwise clipboard mode will be used.

@atotto atotto merged commit e5dffc8 into atotto:master Dec 29, 2017
@atotto
Copy link
Owner

atotto commented Dec 29, 2017

Thank you for your pull request. I'm sorry for the late reply.

@vodan
Copy link

vodan commented Aug 23, 2018

Hi, the primary var is nice but if you use it and decide to build for windows primary is unknown as it will only be defined in linux file. How to handle this?

aral pushed a commit to aral/clipboard that referenced this pull request Aug 26, 2018
On linux provide global var Primary which allow to choose primary mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants