commit 4be8f355c7b5753d5b7e1608402966ed8e755cb2
parent 85759aa38360cd823428b8e5b1bb250851a49213
Author: Natasha Kerensikova <natacha@instinctive.eu>
Date: Sun, 21 May 2023 13:42:55 +0200
[patch] merged dwm-sendmoncenter-20210805-138b405f.diff
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -1658,6 +1658,8 @@ sendmon(Client *c, Monitor *m)
detachstack(c);
c->mon = m;
c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
+ c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2;
+ c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2;
attachbottom(c);
attachstack(c);
if (c->isfullscreen)