diff options
| author | Chris Sobczak <chris@sobczak.family> | 2026-07-04 00:02:29 -0700 |
|---|---|---|
| committer | Chris Sobczak <chris@sobczak.family> | 2026-07-04 00:02:29 -0700 |
| commit | d1f970867ff4a82c61dbdb7172566208fc820847 (patch) | |
| tree | 1315a6521821b32dff0be7692c5880aa0a0c3bf6 /dwl.c | |
| parent | 1358cad2e511260a865fc0393d9db77b01f3d873 (diff) | |
| parent | 48ee6efb978975a62f2b3c2ab8d144cfafd25417 (diff) | |
Merge branch 'alwayscenter' into csobczak-alwayscentercsobczak-alwayscenter
Apply always center patch
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2705,6 +2705,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); } |
