2017-09-23 10:26:01 +02:00
|
|
|
#ifndef WLR_TYPES_WLR_COMPOSITOR_H
|
|
|
|
#define WLR_TYPES_WLR_COMPOSITOR_H
|
|
|
|
|
2017-06-29 00:51:58 +02:00
|
|
|
#include <wayland-server.h>
|
2017-08-03 15:50:45 +02:00
|
|
|
#include <wlr/render.h>
|
2017-06-29 00:51:58 +02:00
|
|
|
|
2017-08-19 21:48:20 +02:00
|
|
|
struct wlr_compositor {
|
2017-06-29 00:51:58 +02:00
|
|
|
struct wl_global *wl_global;
|
|
|
|
struct wl_list wl_resources;
|
2017-08-03 15:50:45 +02:00
|
|
|
struct wlr_renderer *renderer;
|
2017-08-03 20:20:51 +02:00
|
|
|
struct wl_list surfaces;
|
2017-12-07 00:44:45 +01:00
|
|
|
|
|
|
|
struct wl_listener display_destroy;
|
2017-08-19 22:14:51 +02:00
|
|
|
|
2017-08-20 19:50:28 +02:00
|
|
|
struct {
|
2018-01-21 14:22:33 +01:00
|
|
|
struct wl_signal new_surface;
|
2017-08-20 19:50:28 +02:00
|
|
|
} events;
|
2017-06-29 00:51:58 +02:00
|
|
|
};
|
|
|
|
|
2017-08-19 23:16:19 +02:00
|
|
|
void wlr_compositor_destroy(struct wlr_compositor *wlr_compositor);
|
|
|
|
struct wlr_compositor *wlr_compositor_create(struct wl_display *display,
|
|
|
|
struct wlr_renderer *renderer);
|
2017-06-29 00:51:58 +02:00
|
|
|
|
|
|
|
#endif
|