Move wlr_surface into wlr

This commit is contained in:
nyorain 2017-08-09 15:58:10 +02:00
parent 8473c3955c
commit cf9ee6ce3f
6 changed files with 8 additions and 7 deletions

View file

@ -0,0 +1,25 @@
#ifndef _WLR_TYPES_WLR_SURFACE_H
#define _WLR_TYPES_WLR_SURFACE_H
#include <wayland-server.h>
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