gtk-primary-selection: remove offer struct

We don't need it, we can use the device instead.
This commit is contained in:
emersion 2018-11-27 19:45:39 +01:00
parent f001f98cef
commit cbe42d1006
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 45 additions and 74 deletions

View file

@ -36,7 +36,7 @@ struct wlr_gtk_primary_selection_device {
struct wl_list resources; // wl_resource_get_link
struct wlr_gtk_primary_selection_source *source;
struct wl_list offers; // wlr_gtk_primary_selection_offer::link
struct wl_list offers; // wl_resource_get_link
struct wl_listener seat_destroy;
struct wl_listener seat_focus_change;
@ -64,21 +64,6 @@ struct wlr_gtk_primary_selection_source {
void *data;
};
/**
* An offer is the receiving side of a selection. When the selection is set,
* offers are created for the currently focused client and can be used to
* initiate the data transfer.
*/
struct wlr_gtk_primary_selection_offer {
struct wl_resource *resource;
struct wlr_gtk_primary_selection_source *source;
struct wl_list link; // wlr_gtk_primary_selection_device::offers
struct wl_listener source_destroy;
void *data;
};
struct wlr_gtk_primary_selection_device_manager *
wlr_gtk_primary_selection_device_manager_create(struct wl_display *display);
void wlr_gtk_primary_selection_device_manager_destroy(

View file

@ -199,7 +199,6 @@ struct wlr_seat {
// not owned by the seat
struct wlr_gtk_primary_selection_source *primary_selection_source;
uint32_t primary_selection_serial;
// `drag` goes away before `drag_source`, when the implicit grab ends
struct wlr_drag *drag;