Documentation for <wlr/types/wlr_primary_selection_v1.h>

Back to index

Table of contents

struct wlr_primary_selection_v1_device

struct wlr_primary_selection_v1_device {
	struct wlr_primary_selection_v1_device_manager *manager;
	struct wlr_seat *seat;
	struct wl_list link;
	struct wl_list resources;
	struct wl_list offers;
	struct wl_listener seat_destroy;
	struct wl_listener seat_focus_change;
	struct wl_listener seat_set_primary_selection;
	void *data;
};

A device is a per-seat object used to set and get the current selection.

struct wlr_primary_selection_v1_device_manager

struct wlr_primary_selection_v1_device_manager {
	struct wl_global *global;
	struct wl_list devices;
	struct wl_listener display_destroy;
	struct {
		struct wl_signal destroy;
	} events;
	void *data;
};

wlr_primary_selection_v1_device_manager_create()

struct wlr_primary_selection_v1_device_manager *wlr_primary_selection_v1_device_manager_create(​struct wl_display *display);