subcompositor: use wlr_surface_synced

This commit is contained in:
Simon Ser 2023-12-07 12:27:40 +01:00
parent 1c3c24825f
commit 96aec06b0a
3 changed files with 84 additions and 20 deletions

View file

@ -12,8 +12,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <wayland-server-core.h>
struct wlr_surface;
#include <wlr/types/wlr_compositor.h>
/**
* The sub-surface state describing the sub-surface's relationship with its
@ -23,6 +22,10 @@ struct wlr_surface;
struct wlr_subsurface_parent_state {
int32_t x, y;
struct wl_list link;
// private state
struct wlr_surface_synced *synced;
};
struct wlr_subsurface {
@ -47,6 +50,14 @@ struct wlr_subsurface {
} events;
void *data;
// private state
struct wlr_surface_synced parent_synced;
struct {
int32_t x, y;
} previous;
};
struct wlr_subcompositor {