From cf9ee6ce3fe6d9b35f5c737c3fefa6759f8095c0 Mon Sep 17 00:00:00 2001 From: nyorain Date: Wed, 9 Aug 2017 15:58:10 +0200 Subject: Move wlr_surface into wlr --- include/wlr/types/wlr_surface.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/wlr/types/wlr_surface.h (limited to 'include') diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h new file mode 100644 index 00000000..88a9a4d8 --- /dev/null +++ b/include/wlr/types/wlr_surface.h @@ -0,0 +1,25 @@ +#ifndef _WLR_TYPES_WLR_SURFACE_H +#define _WLR_TYPES_WLR_SURFACE_H + +#include + +struct wlr_surface { + struct wl_resource *pending_buffer; + bool pending_attached; + bool attached; // whether the surface currently has a buffer attached + + struct wlr_texture *texture; + const char *role; // the lifetime-bound role or null + struct wl_resource *resource; + + struct { + struct wl_signal destroy; + struct wl_signal commit; + } signals; +}; + +struct wlr_renderer; +struct wlr_surface *wlr_surface_create(struct wl_resource *res, + struct wlr_renderer *renderer); + +#endif -- cgit v1.2.3