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

Dnd #57

Draft
wants to merge 45 commits into
base: master
Choose a base branch
from
Draft

Dnd #57

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
3e56207
feat: support custom mime types
wash2 Feb 27, 2024
5603960
chore: clippy
wash2 Feb 27, 2024
87661a2
chore: support 1.65
wash2 Feb 27, 2024
1d5e98d
refactor: remove thiserror from dependencies
wash2 Feb 28, 2024
7a72dd3
fix: doc comment typos
wash2 Feb 28, 2024
84229d0
reword some doc comments
wash2 Feb 28, 2024
a74fc5b
refactor: Text mimes as their own type
wash2 Feb 28, 2024
4492880
cleanup: All private functions go bellow the public ones.
wash2 Feb 28, 2024
9341cc0
cleanup: prettier error handling
wash2 Feb 28, 2024
0043c35
cleanup: move local imports below mod *
wash2 Feb 28, 2024
0d110dd
chore: update CHANGELOG
wash2 Feb 28, 2024
0d61c08
cleanup: add missing . to docs
wash2 Feb 28, 2024
7da622c
fix: check primary_selection_manager_state
wash2 Feb 28, 2024
b03e620
chore: document allowed mime types order preference
wash2 Feb 28, 2024
50ccb2b
cleanup: more clearly document find_allowed
wash2 Feb 28, 2024
23ac0ff
refactor: simplify trait bounds in the public interface
wash2 Feb 29, 2024
3118f11
feat: load raw clipboard data
wash2 Mar 14, 2024
7db9746
feat: add conversion from string for MimeType
wash2 Mar 25, 2024
f5908d0
fix: reorder imports
wash2 Mar 25, 2024
9a0816b
refactor: remove discriminant method
wash2 Mar 25, 2024
cca5483
refactor: make MimeType::find_allowed pub(crate)
wash2 Mar 25, 2024
f03396e
chore: update CHANGELOG and increment version because of breaking cha…
wash2 Feb 28, 2024
1879b30
feat: add conversion from string for MimeType
wash2 Mar 14, 2024
10e534c
wip: Dnd setup
wash2 Mar 20, 2024
1063256
wip: dnd offer handling
wash2 Mar 22, 2024
f5384a3
chore: refactor dnd offer mimes
wash2 Mar 22, 2024
90dc61b
clippy
wash2 Mar 22, 2024
cc9ab6d
feat: dnd sources
wash2 Mar 25, 2024
2c39b92
chore: clippy
wash2 Mar 25, 2024
504d07c
chore: docs
wash2 Mar 25, 2024
2061b48
chore: CHANGELOG
wash2 Mar 25, 2024
e91be7d
fix: rename Target import
wash2 Mar 25, 2024
6bc7781
chroe: add note
wash2 Mar 25, 2024
4c65853
cargo fmt
wash2 Mar 25, 2024
e84ab6d
feat: method for peeking dnd offer data
wash2 Mar 25, 2024
1b6efd0
refactor: make previous raw methods just allow specific mime types in…
wash2 Mar 26, 2024
efe7a75
refactor: Allow requesting a specific mime type when peeking at the o…
wash2 Mar 26, 2024
ace619f
refactor: add buffer variant to icon argument when starting DnD
wash2 Mar 27, 2024
a698efe
cleanup: fmt + clippy
wash2 Mar 27, 2024
2263426
chore: add rwh-6 feature
wash2 Mar 28, 2024
eefa50c
fix: remove a destination surface if it is assigned empty list of rec…
wash2 May 1, 2024
9b995a3
fix: add rev for sctk
wash2 May 3, 2024
ab1750a
Update sctk to `0.19.1`
ids1024 Jun 11, 2024
d099e82
fix: send selected action event
wash2 Apr 4, 2024
5a3007d
fix: always recalculate DnD rectangle on offer motion in case it changes
wash2 Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## 0.8.0

- Add support for Drag and Drop behind the `dnd` feature
- **Breaking** Introduced generic surface type parameter for `Clipboard`.
- Add support for loading and storing custom data.
- **Breaking** `Clipboard::load` renamed to `Clipboard::load_text`.
- **Breaking** `Clipboard::load_primary` renamed to `Clipboard::load_primary_text`.
- **Breaking** `Clipboard::store` renamed to `Clipboard::store_text`.
- **Breaking** `Clipboard::store_primary` renamed to `Clipboard::store_primary_text`.

## 0.7.1

- Don't panic on display disconnect
Expand Down
30 changes: 23 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[package]
name = "smithay-clipboard"
version = "0.7.1"
authors = ["Kirill Chibisov <[email protected]>", "Victor Berger <[email protected]>"]
version = "0.8.0"
authors = [
"Kirill Chibisov <[email protected]>",
"Victor Berger <[email protected]>",
]
edition = "2021"
description = "Provides access to the wayland clipboard for client applications."
repository = "https://github.com/smithay/smithay-clipboard"
Expand All @@ -12,12 +15,25 @@ rust-version = "1.65.0"

[dependencies]
libc = "0.2.149"
sctk = { package = "smithay-client-toolkit", version = "0.18.0", default-features = false, features = ["calloop"] }
wayland-backend = { version = "0.3.0", default_features = false, features = ["client_system"] }
sctk = { package = "smithay-client-toolkit", version = "0.19.1", default-features = false, features = [
"calloop",
] }
wayland-backend = { version = "0.3.3", default_features = false, features = [
"client_system",
] }
raw-window-handle = { version = "0.6", optional = true }

[dev-dependencies]
sctk = { package = "smithay-client-toolkit", version = "0.18.0", default-features = false, features = ["calloop", "xkbcommon"] }
dirs = "5.0.1"
sctk = { package = "smithay-client-toolkit", version = "0.19.1", default-features = false, features = [
"calloop",
"xkbcommon",
] }
thiserror = "1.0.57"
url = "2.5.0"

[features]
default = ["dlopen"]
dlopen = ["wayland-backend/dlopen" ]
default = ["dlopen", "dnd", "rwh-6"]
rwh-6 = ["raw-window-handle"]
dnd = []
dlopen = ["wayland-backend/dlopen"]
Loading