dwm

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

commit 4f182253e38ab7015d0b4fa4924e820101a10bfc
parent 2bf98a071f3661b7c6cf20c808fe0d7b4115dc21
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 @@ -2052,6 +2052,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); }