diff options
| author | Chris Sobczak <chris@sobczak.family> | 2026-07-04 00:00:54 -0700 |
|---|---|---|
| committer | Chris Sobczak <chris@sobczak.family> | 2026-07-04 00:00:54 -0700 |
| commit | 48ee6efb978975a62f2b3c2ab8d144cfafd25417 (patch) | |
| tree | 2988c2db7e5679bea7878fb5eabf2127c383d92b /dwl.c | |
| parent | cc4d3d2e4baa03217f08ca7453bc107a1ba791ca (diff) | |
Apply patchalwayscenter
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |
