mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
subsurface sync and position
This commit is contained in:
parent
7f39578824
commit
cb2d05e83b
2 changed files with 53 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue