mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
subcompositor: use wlr_surface_synced
This commit is contained in:
parent
1c3c24825f
commit
96aec06b0a
3 changed files with 84 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue