mirror of
https://github.com/vale981/bspwm
synced 2025-03-05 09:51:38 -05:00
Take tall screens into consideration
This commit is contained in:
parent
80ca33c3cd
commit
310ca26900
1 changed files with 4 additions and 1 deletions
5
tree.c
5
tree.c
|
@ -300,7 +300,10 @@ void insert_node(desktop_t *d, node_t *n)
|
|||
if (fopar == NULL) {
|
||||
dad->first_child = n;
|
||||
dad->second_child = focus;
|
||||
dad->split_type = TYPE_VERTICAL;
|
||||
if (focus->rectangle.width > focus->rectangle.height)
|
||||
dad->split_type = TYPE_VERTICAL;
|
||||
else
|
||||
dad->split_type = TYPE_HORIZONTAL;
|
||||
focus->parent = dad;
|
||||
d->root = dad;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue