Commit graph

104 commits

Author SHA1 Message Date
af8e6a872d chore: use local smithay-clipboard
Some checks failed
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
Test / all (windows-latest, beta) (push) Has been cancelled
Test / all (windows-latest, stable) (push) Has been cancelled
2026-05-25 19:36:22 +02:00
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
Ian Douglas Scott
6b9faab87b dnd: Don't call Arc::get_mut
The caller of `start_dnd` may also have a reference, so this can panic.
Either the public API shouldn't take an `Arc` or this should be avoided.

There doesn't seem to be any reason this is needed anyway.
2025-01-02 09:14:49 -08:00
Ashley Wulber
a83bf83784
refactor: remove Box 2024-10-21 11:14:55 -04:00
Ashley Wulber
68f111cfd0
fix: dummy 2024-10-21 11:13:59 -04:00
Ashley Wulber
1832d5637b
refactor: remove Sized bound 2024-09-20 15:10:45 -04:00
Ashley Wulber
7c59b07b91 fix: stubs for various platforms 2024-06-19 12:47:13 -04:00
Ian Douglas Scott
a5be704055 Update smithay-clipboard 2024-06-11 17:58:40 -07:00
Ashley Wulber
8a816d8f21
chore: update smithay-clipboard 2024-05-01 14:57:01 -04:00
Jeremy Soller
6ca3cc3d4c Stub DndProvider for dummy platform 2024-04-13 08:59:37 -06:00
Jeremy Soller
ff869add34 Make dummy Clipboard pub 2024-04-13 08:42:31 -06:00
Ashley Wulber
e717bd58a0
chore: update tag 2024-04-09 14:39:19 -04:00
Ashley Wulber
f290a4fc86
chore: update tag 2024-04-04 19:40:49 -04:00
Ashley Wulber
c9e7a8e2fa
refactor: use rwh 2024-03-29 15:48:29 -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
4e05e3c657
make dnd types public 2024-03-26 16:05:29 -04:00
Ashley Wulber
228288dfdf
feat: dnd integration 2024-03-26 16:03:05 -04:00
Ashley Wulber
c3e9e794b9
refactor: remove unneeded mime types from ClipboardStoredData 2024-03-14 18:52:26 -04:00
Ashley Wulber
20e7cbedf5
chore: add more impls of clipboard methods 2024-03-14 17:19:32 -04:00
Ashley Wulber
71df657777
feat: add methods for loading raw data 2024-03-14 16:42:24 -04:00
Ashley Wulber
5dd795d463
refactor: add type that hides the platform clipboard 2024-03-14 13:30:50 -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
Héctor Ramón Jiménez
4bd0f74db5
Require new patched dependencies in root crate
Some checks failed
Test / all (ubuntu-latest, beta) (push) Has been cancelled
Test / all (ubuntu-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 (windows-latest, beta) (push) Has been cancelled
Test / all (windows-latest, stable) (push) Has been cancelled
2024-02-13 02:48:30 +01:00
Héctor Ramón Jiménez
3801f265ca
Bump versions 🎉 2024-02-13 02:45:43 +01:00
Héctor Ramón
ba5cd2aaf8
Merge pull request #25 from MoSal/primary
Add primary clipboard support for X11 and wayland
2024-02-07 14:49:22 +01: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
Héctor Ramón Jiménez
40447db331
Bump versions 🎉 2024-01-18 08:59:51 +01:00
Héctor Ramón
d7c9e8a2f7
Merge pull request #24 from ids1024/raw-window-handle-0.6
Raw window handle 0.6
2024-01-18 08:56:30 +01:00
Héctor Ramón Jiménez
e8f2fbdaf0
Return Result in examples instead of unwrap 2024-01-18 08:55:30 +01: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
Ian Douglas Scott
555678e6ed Update examples to winit 0.29 2024-01-16 21:09:18 -08:00
Ian Douglas Scott
d6224e1b03 Update clipboard-win 2024-01-16 20:45:19 -08:00
Ian Douglas Scott
cce758143e Update x11rb and smithay-clipboard dependencies 2023-12-12 12:55:27 -08:00
Héctor Ramón Jiménez
233844934e
Bump version 🎉 2023-04-11 06:22:16 +02:00
Héctor Ramón Jiménez
5fb572e9fe
Upgrade edition to 2021 in Cargo.toml 2023-04-11 06:21:59 +02:00
Héctor Ramón Jiménez
2e45dd1cbc
Update winit to 0.28 2023-04-11 06:20:36 +02:00
Héctor Ramón
02979730ba
Merge pull request #20 from TobTobXX/update-raw-window-handle
Update raw-window-handle to v0.5
2023-04-11 06:18:16 +02:00
Héctor Ramón
45cda23798
Merge pull request #22 from ids1024/x11rb
x11: Update `x11rb`
2023-02-27 01:30:21 +01:00
Ian Douglas Scott
64e806fccd x11: Update x11rb 2023-01-12 10:25:00 -08:00
Héctor Ramón Jiménez
18cc5b91ff
Bump version 🎉 2023-01-12 16:08:10 +01:00
Héctor Ramón
558dbfb400
Merge pull request #21 from jackpot51/master
Use dummy platform for Redox OS
2023-01-11 18:17:22 +01:00
Jeremy Soller
9fc98bdd49 Use dummy platform for Redox OS 2023-01-11 09:28:47 -07: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
c97306d269
Bump versions 🎉 2022-05-10 20:21:39 +02:00