tree/container: add placeholder leaf scaffolding

Add is_placeholder and swallows fields plus
container_init_border_rects, used by upcoming append_layout
support. No behaviour change.
This commit is contained in:
codegax 2026-04-25 14:00:00 -06:00
parent c857ca3a97
commit 850e50b9b7
2 changed files with 31 additions and 4 deletions

View file

@ -141,11 +141,19 @@ struct sway_container {
list_t *marks; // char *
// append_layout placeholder: view==NULL, swallows holds matchers for the
// view that should be installed here. swallows_json retains the original
// i3-shaped array so IPC can echo it verbatim for round-trip.
bool is_placeholder;
list_t *swallows; // struct criteria *
struct {
struct wl_signal destroy;
} events;
};
void container_init_border_rects(struct sway_container *c, bool *failed);
struct sway_container *container_create(struct sway_view *view);
void container_destroy(struct sway_container *con);