From 48ee6efb978975a62f2b3c2ab8d144cfafd25417 Mon Sep 17 00:00:00 2001 From: Chris Sobczak Date: Sat, 4 Jul 2026 00:00:54 -0700 Subject: Apply patch --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dwl.c b/dwl.c index 44f3ad9..72714f8 100644 --- a/dwl.c +++ b/dwl.c @@ -2414,6 +2414,8 @@ setmon(Client *c, Monitor *m, uint32_t newtags) /* Make sure window actually overlaps with the monitor */ resize(c, c->geom, 0); c->tags = newtags ? newtags : m->tagset[m->seltags]; /* assign tags of target monitor */ + c->prev.x = (m->w.width - c->prev.width) / 2 + m->m.x; + c->prev.y = (m->w.height - c->prev.height) / 2 + m->m.y; setfullscreen(c, c->isfullscreen); /* This will call arrange(c->mon) */ setfloating(c, c->isfloating); } -- cgit v1.2.3