Commit graph

20 commits

Author SHA1 Message Date
319db02e52 yoda: gate clipboard_x11 behind an opt-in feature
Some checks failed
Test / all (windows-latest, beta) (push) Has been cancelled
Test / all (windows-latest, stable) (push) Has been cancelled
Test / all (macOS-latest, beta) (push) Has been cancelled
Test / all (macOS-latest, stable) (push) Has been cancelled
Test / all (ubuntu-latest, beta) (push) Has been cancelled
Test / all (ubuntu-latest, stable) (push) Has been cancelled
Upstream pulled clipboard_x11 unconditionally on unix, which drags
x11rb + x11rb-protocol and ~500 symbols of X11 clipboard code into
every Wayland-only iced build. Add an x11 feature (default-on for
compat) that gates:
- the clipboard_x11 workspace dep (now optional)
- `pub use clipboard_x11 as x11` re-export
- the Clipboard::X11 enum variant
- every match arm that handles it
- the fallback branch in `unsafe fn connect` (returns a helpful
  error when called with a non-Wayland display handle)

Wayland-only builds set `window_clipboard = { ..., default-features = false, features = ["wayland"] }` and skip the x11 backend entirely.
2026-04-24 06:50:48 +02:00
Ashley Wulber
f68595ee0e cleanup: dbg 2026-03-16 16:51:48 -04:00
Ashley Wulber
3a7af79e54 update smithay-clipboard and sctk 2026-03-02 12:32:18 -05:00
Ashley Wulber
a83bf83784
refactor: remove Box 2024-10-21 11:14:55 -04:00
Ashley Wulber
1832d5637b
refactor: remove Sized bound 2024-09-20 15:10:45 -04:00
Ashley Wulber
42a888736b
refactor: use icon type when starting dnd 2024-03-27 18:28:59 -04:00
Ashley Wulber
5bfbaae180
refactor: update smithay-clipboard 2024-03-26 17:32:09 -04:00
Ashley Wulber
228288dfdf
feat: dnd integration 2024-03-26 16:03:05 -04:00
Ashley Wulber
71df657777
feat: add methods for loading raw data 2024-03-14 16:42:24 -04:00
Ashley Wulber
886f430414
refactor: avoid breaking changes and update smithay-clipboard 2024-03-14 13:16:13 -04:00
Ashley Wulber
6c41143f5c
feat: add wayland impl for custom mime types 2024-02-29 17:15:30 -05:00
Ashley Wulber
8e7827ebbe
refactor: allow clipboard methods to take generic data 2024-02-29 14:30:53 -05:00
Mohammad AlSaleh
cb8471828a Add primary clipboard support for X11 and wayland
The X11 code already had the functionality. Just didn't expose it.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
2024-01-19 05:47:30 +03:00
Ian Douglas Scott
869737dadc Use HasDisplayHandle instead of deprecated HasRawDisplayHandle
Currently `connect` is unsafe because it doesn't take ownership of the
display or have a lifetime bound.
2024-01-16 21:37:13 -08:00
Ian Douglas Scott
bf49c91331 Update to raw-window-handle 0.6 2024-01-16 21:12:14 -08:00
TobTobXX
1392da8339
Update raw-window-handle to v0.5
Update raw-window-handle to v0.5. This mainly consisted of using the
newly added RawDisplayHandle trait instead of the previously used
RawWindowHandle trait. For the Linux implementation, this also included
updating winit to v0.27
2022-07-27 15:29:12 +02:00
Héctor Ramón Jiménez
5571e00073 Rename Clipboard::new to Clipboard::connect 2021-03-07 03:25:51 +01:00
Héctor Ramón Jiménez
a97dfae8f6 Implement write support for clipboard_x11 2021-03-06 04:37:48 +01:00
Héctor Ramón Jiménez
22c6dd6c04 Add information to cargo manifests 2019-12-19 06:32:29 +01:00
Héctor Ramón Jiménez
23004b960f Remove copypasta and maintain our own fork 2019-12-19 05:47:36 +01:00