hecrj / window_clipboard

A library to obtain clipboard access from a `raw-window-handle`.
MIT License
21 stars 30 forks source link

Add support for Primary #26

Closed snaggen closed 9 months ago

snaggen commented 9 months ago

As part of fixing https://github.com/pop-os/cosmic-term/issues/49 , I have added support for the Primary clipboard.

It is behind #[cfg(target_family = "unix")] since I think it only makes sense on unix.

Note: Since cosmic-term is using window_clipboard 0.3, I have coded this patch against that version, but I think it should apply cleanly against master also.

snaggen commented 9 months ago

I have cleaned it up a bit and synced with master

snaggen commented 9 months ago

Closing this since #25 already exists