aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-27 19:45:39 +0100
committeremersion <contact@emersion.fr>2018-11-27 19:45:39 +0100
commitcbe42d100644307af92f71a04b68a005c31c62d6 (patch)
treece8d14b6ea79bbb16ba30bd6f2ac10b093d93acd /include
parentf001f98cef158e37e9594b0dca5b4bf60f59f201 (diff)
gtk-primary-selection: remove offer struct
We don't need it, we can use the device instead.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_gtk_primary_selection.h17
-rw-r--r--include/wlr/types/wlr_seat.h1
2 files changed, 1 insertions, 17 deletions
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;