aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Leonhardt <equinox.salexander@gmail.com>
2026-09-05 10:53:11 +0200
committerAlexander Leonhardt <equinox.salexander@gmail.com>
2026-09-05 10:53:11 +0200
commitd2602b87d051a5f0f4e0c6550db6346742314f70 (patch)
tree6bcf63e8717735bf35736b2d4219b9fc4dc96db0
parent2554be4300170799a64c68b02a420b4fcdb90431 (diff)
downloaddwl-d2602b87d051a5f0f4e0c6550db6346742314f70.tar.gz
dwl-d2602b87d051a5f0f4e0c6550db6346742314f70.tar.bz2
dwl-d2602b87d051a5f0f4e0c6550db6346742314f70.zip
Applied always-center
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
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);
}