wlroots-hyprland/include/wlr/types/wlr_compositor.h

34 lines
782 B
C
Raw Normal View History

#ifndef WLR_TYPES_WLR_COMPOSITOR_H
#define WLR_TYPES_WLR_COMPOSITOR_H
#include <wayland-server.h>
#include <wlr/render/wlr_renderer.h>
struct wlr_surface;
2018-04-21 19:40:25 +02:00
// TODO: expose subcompositor
struct wlr_compositor {
struct wl_global *wl_global;
struct wl_list wl_resources;
struct wlr_renderer *renderer;
struct wl_list surfaces;
struct wl_listener display_destroy;
2017-08-20 19:50:28 +02:00
struct {
struct wl_signal new_surface;
struct wl_signal destroy;
2017-08-20 19:50:28 +02:00
} events;
};
void wlr_compositor_destroy(struct wlr_compositor *wlr_compositor);
struct wlr_compositor *wlr_compositor_create(struct wl_display *display,
struct wlr_renderer *renderer);
bool wlr_surface_is_subsurface(struct wlr_surface *surface);
struct wlr_subsurface *wlr_subsurface_from_surface(struct wlr_surface *surface);
#endif