Count descendant views for hide_edge_borders smart

This commit is contained in:
Brian Ashworth 2018-05-12 12:37:48 -04:00
parent 3db7fc2bb2
commit e3625d8f33
4 changed files with 22 additions and 5 deletions

View file

@ -101,7 +101,7 @@ void view_autoconfigure(struct sway_view *view) {
}
struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
int other_views = ws->children->length - 1;
int other_views = container_count_descendants_of_type(ws, C_VIEW) - 1;
double x, y, width, height;
x = y = width = height = 0;