Documentation for <wlr/types/wlr_xdg_activation_v1.h>

Back to index

Table of contents

struct wlr_xdg_activation_token_v1

struct wlr_xdg_activation_token_v1 {
	struct wlr_xdg_activation_v1 *activation;
	struct wlr_surface *surface;
	struct wlr_seat *seat;
	uint32_t serial;
	char *app_id;
	struct wl_list link;
	void *data;
	struct {
		struct wl_signal destroy;
	} events;
	char *token;
	struct wl_resource *resource;
	struct wl_event_source *timeout;
	struct wl_listener seat_destroy;
	struct wl_listener surface_destroy;
};

wlr_xdg_activation_token_v1_create()

struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_token_v1_create(​struct wlr_xdg_activation_v1 *activation);

wlr_xdg_activation_token_v1_destroy()

void wlr_xdg_activation_token_v1_destroy(​struct wlr_xdg_activation_token_v1 *token);

struct wlr_xdg_activation_v1

struct wlr_xdg_activation_v1 {
	uint32_t token_timeout_msec;
	struct wl_list tokens;
	struct {
		struct wl_signal destroy;
		struct wl_signal request_activate;
	} events;
	struct wl_display *display;
	struct wl_global *global;
	struct wl_listener display_destroy;
};

wlr_xdg_activation_v1_add_token()

struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_v1_add_token(​struct wlr_xdg_activation_v1 *activation, const char *token_str);

wlr_xdg_activation_v1_create()

struct wlr_xdg_activation_v1 *wlr_xdg_activation_v1_create(​struct wl_display *display);

wlr_xdg_activation_v1_find_token()

struct wlr_xdg_activation_token_v1 *wlr_xdg_activation_v1_find_token(​struct wlr_xdg_activation_v1 *activation, const char *token_str);

struct wlr_xdg_activation_v1_request_activate_event

struct wlr_xdg_activation_v1_request_activate_event {
	struct wlr_xdg_activation_v1 *activation;
	struct wlr_xdg_activation_token_v1 *token;
	struct wlr_surface *surface;
};