dwm

Suckless' dwm with my personal patches
git clone https://git.instinctive.eu/dwm.git
Log | Files | Refs | README | LICENSE

commit 406c6d71ad54e45115fc046af7d6af1f98e38529
parent 271c46ab64957539f2c3a15342c710e74709c720
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date:   Sun, 21 May 2023 13:43:29 +0200

[patch] dwm-togglefloatingcenter-20210806-138b405f.diff

Diffstat:
Mdwm.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/dwm.c b/dwm.c @@ -2050,6 +2050,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); }