mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
gtk-primary-selection: remove offer struct
We don't need it, we can use the device instead.
This commit is contained in:
parent
f001f98cef
commit
cbe42d1006
3 changed files with 45 additions and 74 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue