mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-07 13:29:49 -05:00
Add surface interface stubs in compositor example
Add the wayland surface interface to the example compositor. Implement the create_surface method to create a new wlr surface from the wayland surface and add the interface.
This commit is contained in:
parent
2bfacc63d3
commit
555914a13b
3 changed files with 92 additions and 6 deletions
|
|
@ -1,14 +1,16 @@
|
|||
#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;
|
||||
};
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue