wlroots-hyprland/examples/compositor.h

35 lines
809 B
C
Raw Normal View History

#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 wlr_renderer *renderer);
struct wl_shell_state {
struct wl_global *wl_global;
struct wl_list wl_resources;
};
2017-08-08 14:09:14 +02:00
struct xdg_shell_state {
struct wl_global *wl_global;
struct wl_list wl_resources;
struct wl_display *display;
2017-08-08 14:09:14 +02:00
};
void wl_shell_init(struct wl_display *display,
struct wl_shell_state *state);
2017-08-08 14:09:14 +02:00
void xdg_shell_init(struct wl_display *display,
struct xdg_shell_state *state);
#endif