use splith as default when restoring a layout
This frees users from specifying layouts even when they don’t make any difference, e.g. leaf nodes.
This commit is contained in:
parent
c7036191c8
commit
ce480dcc74
|
@ -67,6 +67,12 @@ static int json_start_map(void *ctx) {
|
|||
static int json_end_map(void *ctx) {
|
||||
LOG("end of map\n");
|
||||
if (!parsing_swallows && !parsing_rect && !parsing_window_rect && !parsing_geometry) {
|
||||
/* Set a few default values to simplify manually crafted layout files. */
|
||||
if (json_node->layout == L_DEFAULT) {
|
||||
DLOG("Setting layout = L_SPLITH\n");
|
||||
json_node->layout = L_SPLITH;
|
||||
}
|
||||
|
||||
LOG("attaching\n");
|
||||
con_attach(json_node, json_node->parent, true);
|
||||
LOG("Creating window\n");
|
||||
|
|
Loading…
Reference in New Issue