wlroots icon indicating copy to clipboard operation
wlroots copied to clipboard

Proposal: helper to track surface damage

Open emersion opened this issue 6 years ago • 0 comments

struct wlr_surface_damage_manager {
	struct wlr_surface *surface;
	struct {
		struct wl_signal damage;
	} events;
};

struct wlr_surface_damage_manager_damage_event {
	struct wlr_surface_damage_manager *manager;
	int32_t sx, sy;
	pixman_region32_t *damage;
};

// Listens to surface commit and damage from children subsurfaces.
struct wlr_surface_damage_manager *wlr_surface_damage_manager_from_surface(
	struct wlr_surface *surface);
// Listens to surface commit, map/unmap and damage from children
// subsurfaces/popups.
struct wlr_surface_damage_manager *wlr_surface_damage_manager_from_xdg_surface(
	struct wlr_xdg_surface *xdg_surface);

wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1543

emersion avatar Feb 13 '19 17:02 emersion