Skip to content

Conversation

@wash2
Copy link
Member

@wash2 wash2 commented Mar 25, 2024

This adds DnD support on top of #56 . I've not had a chance to integrate it into window-clipboard or iced, so I'll probably finish that before it is ready for review. I also intend on adding a method for peeking at the data of a DnD offer in a blocking way similar to the existing clipboard methods.

Comment on lines +183 to +189
Buf {
width: u32,
height: u32,
data: Vec<u8>,
transparent: bool,
},
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To properly support hiDPI, this also needs a scale factor, right?

A scale: f64 field would make sense, though I guess that wouldn't perfectly represent a wp_fractional_scale_v1::preferred_scale so it could cause rounding errors with fractional scales.

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.

2 participants