subsurface sync and position

This commit is contained in:
Tony Crisci 2017-09-24 11:17:17 -04:00
parent 7f39578824
commit cb2d05e83b
2 changed files with 53 additions and 9 deletions

View file

@ -19,12 +19,6 @@ struct wlr_frame_callback {
#define WLR_SURFACE_INVALID_TRANSFORM 32
#define WLR_SURFACE_INVALID_SCALE 64
struct wlr_subsurface {
struct wl_resource *resource;
struct wlr_surface *surface;
struct wlr_surface *parent;
};
struct wlr_surface_state {
uint32_t invalid;
struct wl_resource *buffer;
@ -37,6 +31,25 @@ struct wlr_surface_state {
int buffer_width, buffer_height;
};
struct wlr_subsurface {
struct wl_resource *resource;
struct wlr_surface *surface;
struct wlr_surface *parent;
struct wlr_surface_state cached;
struct {
int32_t x, y;
} position;
struct {
int32_t x, y;
bool set;
} pending_position;
bool synchronized;
};
struct wlr_surface {
struct wl_resource *resource;
struct wlr_renderer *renderer;