use con_num_children()
This commit is contained in:
parent
178b28ed09
commit
a86d8ab329
@ -650,10 +650,8 @@ resize:
|
|||||||
} else {
|
} else {
|
||||||
LOG("tiling resize\n");
|
LOG("tiling resize\n");
|
||||||
/* get the default percentage */
|
/* get the default percentage */
|
||||||
int children = 0;
|
int children = con_num_children(focused->parent);
|
||||||
Con *other;
|
Con *other;
|
||||||
TAILQ_FOREACH(other, &(focused->parent->nodes_head), nodes)
|
|
||||||
children++;
|
|
||||||
LOG("ins. %d children\n", children);
|
LOG("ins. %d children\n", children);
|
||||||
double percentage = 1.0 / children;
|
double percentage = 1.0 / children;
|
||||||
LOG("default percentage = %f\n", percentage);
|
LOG("default percentage = %f\n", percentage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user