dwm

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

commit 73dc5337f1fa4231e1d34ba1b168e357961c38d9
parent 9d2272c50e2596e19a1c6e014a44c860556847b4
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); }