Documentation for <wlr/types/wlr_server_decoration.h>

Back to index

Table of contents

struct wlr_server_decoration

struct wlr_server_decoration {
	struct wl_resource *resource;
	struct wlr_surface *surface;
	struct wl_list link;
	uint32_t mode;
	struct {
		struct wl_signal destroy;
		struct wl_signal mode;
	} events;
	struct wl_listener surface_destroy_listener;
	void *data;
};

struct wlr_server_decoration_manager

struct wlr_server_decoration_manager {
	struct wl_global *global;
	struct wl_list resources;
	struct wl_list decorations;
	uint32_t default_mode;
	struct wl_listener display_destroy;
	struct {
		struct wl_signal new_decoration;
		struct wl_signal destroy;
	} events;
	void *data;
};

A decoration negotiation interface which implements the KDE protocol.

wlr_server_decoration_manager_create()

struct wlr_server_decoration_manager *wlr_server_decoration_manager_create(​struct wl_display *display);

enum wlr_server_decoration_manager_mode

enum wlr_server_decoration_manager_mode {
	WLR_SERVER_DECORATION_MANAGER_MODE_NONE,
	WLR_SERVER_DECORATION_MANAGER_MODE_CLIENT,
	WLR_SERVER_DECORATION_MANAGER_MODE_SERVER,
};

Possible values to use in request_mode and the event mode. Same as org_kde_kwin_server_decoration_manager_mode.

wlr_server_decoration_manager_set_default_mode()

void wlr_server_decoration_manager_set_default_mode(​struct wlr_server_decoration_manager *manager, uint32_t default_mode);