diff options
| author | Alexander Leonhardt <equinox.salexander@gmail.com> | |
|---|---|---|
| 2026-09-05 10:53:11 +0200 | ||
| committer | Alexander Leonhardt <equinox.salexander@gmail.com> | |
| 2026-09-05 10:53:11 +0200 | ||
| commit | d2602b87d051a5f0f4e0c6550db6346742314f70 (patch) | |
| tree | 6bcf63e8717735bf35736b2d4219b9fc4dc96db0 | |
| parent | 2554be4300170799a64c68b02a420b4fcdb90431 (diff) | |
| download | dwl-d2602b87d051a5f0f4e0c6550db6346742314f70.tar.gz dwl-d2602b87d051a5f0f4e0c6550db6346742314f70.tar.bz2 dwl-d2602b87d051a5f0f4e0c6550db6346742314f70.zip | |
Applied always-center
@@ -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); } |