mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
Separate root-related code
This creates a root.c and moves bits and pieces from elsewhere into it. * layout_init has been renamed to root_create and moved into root.c * root_destroy has been created and is called on shutdown * scratchpad code has been moved into root.c, because hidden scratchpad containers are stored in the root struct
This commit is contained in:
parent
5de2223c6d
commit
04489ff420
12 changed files with 292 additions and 275 deletions
|
|
@ -14,8 +14,6 @@
|
|||
#include "list.h"
|
||||
#include "log.h"
|
||||
|
||||
struct sway_container root_container;
|
||||
|
||||
static void apply_horiz_layout(struct sway_container *parent) {
|
||||
size_t num_children = parent->children->length;
|
||||
if (!num_children) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue