Merge branch 'better-initialized' into 'master'

Draft: xdg-shell,layer-shell: improve init state tracking

Closes #3780

See merge request wlroots/wlroots!4766
This commit is contained in:
Kirill Primak 2026-02-04 04:50:12 +03:00
commit 79c8a4dc57
6 changed files with 44 additions and 26 deletions

View file

@ -250,8 +250,6 @@ struct wlr_surface {
int buffer_width, buffer_height;
} previous;
bool unmap_commit;
bool opaque;
bool handling_commit;

View file

@ -70,6 +70,10 @@ struct wlr_layer_surface_v1_state {
uint32_t configure_serial;
uint32_t actual_width, actual_height;
struct {
bool initial_commit;
} WLR_PRIVATE;
};
struct wlr_layer_surface_v1_configure {
@ -118,6 +122,8 @@ struct wlr_layer_surface_v1 {
struct {
struct wlr_surface_synced synced;
bool client_mapped;
} WLR_PRIVATE;
};

View file

@ -258,6 +258,10 @@ struct wlr_xdg_surface_state {
struct wlr_box geometry;
uint32_t configure_serial;
struct {
bool initial_commit;
} WLR_PRIVATE;
};
/**
@ -319,6 +323,8 @@ struct wlr_xdg_surface {
struct wlr_surface_synced synced;
struct wl_listener role_resource_destroy;
bool client_mapped;
} WLR_PRIVATE;
};