From d2602b87d051a5f0f4e0c6550db6346742314f70 Mon Sep 17 00:00:00 2001 From: Alexander Leonhardt Date: Sat, 5 Sep 2026 10:53:11 +0200 Subject: Applied always-center --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dwl.c b/dwl.c index 101a45f..a8a6992 100644 --- a/dwl.c +++ b/dwl.c @@ -2415,6 +2415,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