Documentation for <wlr/types/wlr_cursor_shape_v1.h>

Back to index

Table of contents

struct wlr_cursor_shape_manager_v1

struct wlr_cursor_shape_manager_v1 {
	struct wl_global *global;
	
	struct {
		struct wl_signal request_set_shape; // struct wlr_cursor_shape_manager_v1_request_set_shape_event
		struct wl_signal destroy;
	} events;
	
	void *data;
	
	// private state
	
	struct wl_listener display_destroy;
};

Manager for the cursor-shape-v1 protocol.

Compositors should listen to the request_set_shape event and handle it in the same way as wlr_seat.events.request_set_cursor.

wlr_cursor_shape_manager_v1_create()

struct wlr_cursor_shape_manager_v1 *wlr_cursor_shape_manager_v1_create(​struct wl_display *display, uint32_t version);

enum wlr_cursor_shape_manager_v1_device_type

enum wlr_cursor_shape_manager_v1_device_type {
	WLR_CURSOR_SHAPE_MANAGER_V1_DEVICE_TYPE_POINTER,
	WLR_CURSOR_SHAPE_MANAGER_V1_DEVICE_TYPE_TABLET_TOOL,
};

struct wlr_cursor_shape_manager_v1_request_set_shape_event

struct wlr_cursor_shape_manager_v1_request_set_shape_event {
	struct wlr_seat_client *seat_client;
	enum wlr_cursor_shape_manager_v1_device_type device_type;
	uint32_t serial;
	enum wp_cursor_shape_device_v1_shape shape;
};

wlr_cursor_shape_v1_name()

const char *wlr_cursor_shape_v1_name(​enum wp_cursor_shape_device_v1_shape shape);

Get the name of a cursor shape.

The name can be used to load a cursor from an XCursor theme.