mirror of
https://github.com/swaywm/sway.git
synced 2025-11-18 06:59:48 -05:00
Count descendant views for hide_edge_borders smart
This commit is contained in:
parent
3db7fc2bb2
commit
e3625d8f33
4 changed files with 22 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue