Make workspace_layout handle all cons at workspace level, not only the first one (+test)
This makes opening new windows on workspace level and moving windows to the right/left more like in the old i3.
This commit is contained in:
@ -32,12 +32,12 @@ static int json_start_map(void *ctx) {
|
||||
if (last_key && strcasecmp(last_key, "floating_nodes") == 0) {
|
||||
DLOG("New floating_node\n");
|
||||
Con *ws = con_get_workspace(json_node);
|
||||
json_node = con_new(NULL);
|
||||
json_node = con_new(NULL, NULL);
|
||||
json_node->parent = ws;
|
||||
DLOG("Parent is workspace = %p\n", ws);
|
||||
} else {
|
||||
Con *parent = json_node;
|
||||
json_node = con_new(NULL);
|
||||
json_node = con_new(NULL, NULL);
|
||||
json_node->parent = parent;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user