Skip to content

fix: define Primary on all platforms - #83

Open
TastyHeadphones wants to merge 1 commit into
atotto:masterfrom
TastyHeadphones:fix/primary-all-platforms
Open

TastyHeadphones wants to merge 1 commit into
atotto:masterfrom
TastyHeadphones:fix/primary-all-platforms

Conversation

@TastyHeadphones

Copy link
Copy Markdown

Primary was only declared behind the Unix build tag, so code that sets clipboard.Primary fails to compile on Darwin/Windows.

Moved it to the shared package file so the symbol always exists. It still only changes behavior on Unix (X11 PRIMARY vs CLIPBOARD).

Fixes #71

Primary was only declared in the Unix build, so setting
clipboard.Primary on Darwin/Windows failed to compile. Move it to the
shared package file so the symbol always exists; it still only affects
X11 PRIMARY selection on Unix.
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.

undefined: clipboard.Primary

1 participant