patch togglefloatingcenter and add sudo term

This commit is contained in:
2026-02-10 10:39:27 -05:00
parent 41a166e157
commit 7ad2fa4c2c
4 changed files with 2203 additions and 0 deletions

4
dwm.c
View File

@@ -1732,6 +1732,10 @@ togglefloating(const Arg *arg)
if (selmon->sel->isfloating)
resize(selmon->sel, selmon->sel->x, selmon->sel->y,
selmon->sel->w, selmon->sel->h, 0);
selmon->sel->x = selmon->sel->mon->mx + (selmon->sel->mon->mw - WIDTH(selmon->sel)) / 2;
selmon->sel->y = selmon->sel->mon->my + (selmon->sel->mon->mh - HEIGHT(selmon->sel)) / 2;
arrange(selmon);
}