Merge branch 'main' of https://github.com/mangowm/mango into configurable_tag_count

This commit is contained in:
Gerry Hernandez 2026-03-18 23:21:06 -07:00
commit cc0c3f1a36
9 changed files with 100 additions and 33 deletions

View file

@ -1866,3 +1866,27 @@ int32_t scroller_stack(const Arg *arg) {
arrange(selmon, false, false);
return 0;
}
int32_t toggle_all_floating(const Arg *arg) {
if (!selmon || !selmon->sel)
return 0;
Client *c = NULL;
bool should_floating = !selmon->sel->isfloating;
wl_list_for_each(c, &clients, link) {
if (VISIBLEON(c, selmon)) {
if (c->isfloating && !should_floating) {
c->old_master_inner_per = 0.0f;
c->old_stack_inner_per = 0.0f;
set_size_per(selmon, c);
}
if (c->isfloating != should_floating) {
setfloating(c, should_floating);
}
}
}
return 0;
}