mirror of
https://github.com/swaywm/sway.git
synced 2026-06-13 14:33:19 -04:00
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:
parent
c857ca3a97
commit
850e50b9b7
2 changed files with 31 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue