mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
data-device: keep track of wlr_data_offer in wlr_seat lists
This commit is contained in:
parent
909b3b16f3
commit
a1f9d7ad9e
4 changed files with 16 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ struct wlr_data_offer {
|
|||
struct wl_resource *resource;
|
||||
struct wlr_data_source *source;
|
||||
enum wlr_data_offer_type type;
|
||||
struct wl_list link; // wlr_seat::{selection_offers,drag_offers}
|
||||
|
||||
uint32_t actions;
|
||||
enum wl_data_device_manager_dnd_action preferred_action;
|
||||
|
|
|
|||
|
|
@ -197,6 +197,7 @@ struct wlr_seat {
|
|||
|
||||
struct wlr_data_source *selection_source;
|
||||
uint32_t selection_serial;
|
||||
struct wl_list selection_offers; // wlr_data_offer::link
|
||||
|
||||
struct wlr_primary_selection_source *primary_selection_source;
|
||||
uint32_t primary_selection_serial;
|
||||
|
|
@ -205,6 +206,7 @@ struct wlr_seat {
|
|||
struct wlr_drag *drag;
|
||||
struct wlr_data_source *drag_source;
|
||||
uint32_t drag_serial;
|
||||
struct wl_list drag_offers; // wlr_data_offer::link
|
||||
|
||||
struct wlr_seat_pointer_state pointer_state;
|
||||
struct wlr_seat_keyboard_state keyboard_state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue