mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
555914a13b
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.
23 lines
536 B
C
23 lines
536 B
C
#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 wlr_renderer *renderer);
|
|
|
|
struct wl_shell_state {
|
|
struct wl_global *wl_global;
|
|
struct wl_list wl_resources;
|
|
};
|
|
|
|
void wl_shell_init(struct wl_display *display,
|
|
struct wl_shell_state *state);
|
|
|
|
#endif
|