From cbe42d100644307af92f71a04b68a005c31c62d6 Mon Sep 17 00:00:00 2001 From: emersion Date: Tue, 27 Nov 2018 19:45:39 +0100 Subject: gtk-primary-selection: remove offer struct We don't need it, we can use the device instead. --- include/wlr/types/wlr_gtk_primary_selection.h | 17 +---------------- include/wlr/types/wlr_seat.h | 1 - 2 files changed, 1 insertion(+), 17 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_gtk_primary_selection.h b/include/wlr/types/wlr_gtk_primary_selection.h index e2019123..ed025869 100644 --- a/include/wlr/types/wlr_gtk_primary_selection.h +++ b/include/wlr/types/wlr_gtk_primary_selection.h @@ -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( diff --git a/include/wlr/types/wlr_seat.h b/include/wlr/types/wlr_seat.h index f064c3bb..0b8f15ab 100644 --- a/include/wlr/types/wlr_seat.h +++ b/include/wlr/types/wlr_seat.h @@ -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; -- cgit v1.2.3