look and feel: create split container when switching workspace layout
Quote from the source: When the container type is CT_WORKSPACE, the user wants to change the whole workspace into stacked/tabbed mode. To do this and still allow intuitive operations (like level-up and then opening a new window), we need to create a new split container. */
This commit is contained in:
@ -574,11 +574,11 @@ layout:
|
||||
|
||||
/* check if the match is empty, not if the result is empty */
|
||||
if (match_is_empty(¤t_match))
|
||||
focused->parent->layout = $<number>3;
|
||||
con_set_layout(focused->parent, $<number>3);
|
||||
else {
|
||||
TAILQ_FOREACH(current, &owindows, owindows) {
|
||||
printf("matching: %p / %s\n", current->con, current->con->name);
|
||||
current->con->layout = $<number>3;
|
||||
con_set_layout(current->con, $<number>3);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user