mirror of
https://github.com/Smithay/smithay.git
synced 2024-09-28 03:21:14 +02:00
8e779d02a3
wlr_data_control is a protocol used to implement clipboard managers or access clipboard without creating a window. The implementation of it ties to regular selections, thus the selection handling was unified to reduce the maintainance burden. The present selection modules, like `walyand/primary_selection` and `wayland/data_device` moved into the new `wayland/selection` module. Keeping their original implementation, where it was possible. The new selection module uses the common structure of `seat_data`, `device`, `source`, and `mod.rs` used in the said above modules, however it uses the hand-rolled dynamic dispatch with the `selection_dispatch!` macro. The offers and selection replies are all handled together, so the code is unique in the most cases. As a side effect of the selection update and merging the handling of the primary and clipboard selection into the single `SelectionHandler` trait (users could still just use one of them, it's not a must to have both), the xwayland was changed to use some types from the `wayland/selection` module. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |