--- /dev/null
+#ifndef LIBDS_TYPES_DS_SUBSURFACE_H
+#define LIBDS_TYPES_DS_SUBSURFACE_H
+
+#include <wayland-server.h>
+
+#include <libds/types/ds_surface.h>
+#include <libds/subsurface.h>
+
+struct ds_subsurface_parent_state
+{
+ int32_t x, y;
+ struct wl_list link;
+};
+
+struct ds_subsurface
+{
+ struct wl_resource *resource;
+ struct ds_surface *surface;
+ struct ds_surface *parent;
+
+ struct ds_subsurface_parent_state current, pending;
+
+ struct {
+ struct wl_signal destroy;
+ } events;
+
+ struct {
+ struct wl_listener surface_destroy;
+ struct wl_listener parent_destroy;
+ } listener;
+
+ struct ds_surface_state cached;
+ bool has_cache;
+
+ bool synchronized;
+ bool reordered;
+ bool mapped;
+};
+
+#endif
#include "libds/util/box.h"
#include "libds/util/addon.h"
#include "libds/types/ds_surface.h"
+#include "libds/types/ds_subsurface.h"
#include "surface.h"
#include "util.h"
struct wl_global *global;
};
-struct ds_subsurface_parent_state
-{
- int32_t x, y;
- struct wl_list link;
-};
-
-struct ds_subsurface
-{
- struct wl_resource *resource;
- struct ds_surface *surface;
- struct ds_surface *parent;
-
- struct ds_subsurface_parent_state current, pending;
-
- struct {
- struct wl_signal destroy;
- } events;
-
- struct {
- struct wl_listener surface_destroy;
- struct wl_listener parent_destroy;
- } listener;
-
- struct ds_surface_state cached;
- bool has_cache;
-
- bool synchronized;
- bool reordered;
- bool mapped;
-};
-
bool subcompositor_init(struct ds_subcompositor *subcomp,
struct wl_display *display);