Documentation for <wlr/types/wlr_tearing_control_v1.h>

Back to index

Table of contents

struct wlr_tearing_control_manager_v1

struct wlr_tearing_control_manager_v1 {
	struct wl_global *global;
	
	struct wl_list surface_hints;  // wlr_tearing_control_v1.link
	
	struct wl_listener display_destroy;
	struct {
		struct wl_signal new_object;  // struct wlr_tearing_control_v1*
		struct wl_signal destroy;
	} events;
	
	void *data;
};

wlr_tearing_control_manager_v1_create()

struct wlr_tearing_control_manager_v1 *wlr_tearing_control_manager_v1_create(​struct wl_display *display, uint32_t version);

wlr_tearing_control_manager_v1_surface_hint_from_surface()

enum wp_tearing_control_v1_presentation_hint wlr_tearing_control_manager_v1_surface_hint_from_surface(​struct wlr_tearing_control_manager_v1 *manager, struct wlr_surface *surface);

Returns the tearing hint for a given surface

struct wlr_tearing_control_v1

struct wlr_tearing_control_v1 {
	struct wl_client *client;
	struct wl_list link;
	struct wl_resource *resource;
	
	enum wp_tearing_control_v1_presentation_hint current, pending;
	
	struct {
		struct wl_signal set_hint;
		struct wl_signal destroy;
	} events;
	
	struct wlr_surface *surface;
	
	// private state
	
	enum wp_tearing_control_v1_presentation_hint previous;
	struct wlr_addon addon;
	struct wlr_surface_synced synced;
	
	struct wl_listener surface_commit;
};