diff options
author | Ivan Molodetskikh <yalterz@gmail.com> | 2019-02-01 12:49:46 +0300 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-10 17:12:05 +0100 |
commit | 9e49ceb12985697fbfc0b2fa8f86143b29cc837b (patch) | |
tree | cfba2e4048f5d3aae835265c1af2ddbda49d3f4b /include | |
parent | 95ff898512754b11e8bd0d67f8b1f5b5d7426d65 (diff) |
data-control: add primary selection support
data-control: separate out a data_offer struct
This is a prerequisite to adding primary selection support.
data-control: separate out data_control_source
This is a prerequisite to adding primary selection support, since that
doesn't use wlr_data_source, but rather wlr_primary_selection_source.
Update the data-control protocol
data-control: add primary selection support
Merge create_offer and create_primary_offer
Extract code into data_control_source_destroy()
Fix pointer style
Move resource neutralization to destructor
Store wl_resource in the data_offer
Extract data_offer destruction into a function
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_data_control_v1.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_data_control_v1.h b/include/wlr/types/wlr_data_control_v1.h index 7d336344..32d169b4 100644 --- a/include/wlr/types/wlr_data_control_v1.h +++ b/include/wlr/types/wlr_data_control_v1.h @@ -32,9 +32,11 @@ struct wlr_data_control_device_v1 { struct wlr_seat *seat; struct wl_resource *selection_offer_resource; // current selection offer + struct wl_resource *primary_selection_offer_resource; // current primary selection offer struct wl_listener seat_destroy; struct wl_listener seat_set_selection; + struct wl_listener seat_set_primary_selection; }; struct wlr_data_control_manager_v1 *wlr_data_control_manager_v1_create( |