diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-04 16:21:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-04 16:21:43 -0400 |
commit | de17ce19bed4fd8b9f7322e275cdc3cc349db5ab (patch) | |
tree | f0f78587c5815a984811d11b3b5ce50d46f49909 /examples/compositor.h | |
parent | 359042081f7b97ae79dbfba21680e5e5f505c649 (diff) | |
parent | effea557bbd7ea4d4dda76eaf050cddf54a90346 (diff) |
Merge pull request #41 from acrisci/feature/surface-interface-stub
Add surface interface stubs in compositor example
Diffstat (limited to 'examples/compositor.h')
-rw-r--r-- | examples/compositor.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/compositor.h b/examples/compositor.h index 4773b83d..abe1a743 100644 --- a/examples/compositor.h +++ b/examples/compositor.h @@ -1,14 +1,18 @@ #ifndef _EXAMPLE_COMPOSITOR_H #define _EXAMPLE_COMPOSITOR_H #include <wayland-server.h> +#include <wlr/render.h> struct wl_compositor_state { struct wl_global *wl_global; struct wl_list wl_resources; + struct wlr_renderer *renderer; + struct wl_list surfaces; + struct wl_listener destroy_surface_listener; }; void wl_compositor_init(struct wl_display *display, - struct wl_compositor_state *state); + struct wl_compositor_state *state, struct wlr_renderer *renderer); struct wl_shell_state { struct wl_global *wl_global; |