mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-06 07:15:31 -04:00
Applied the alwayscenter patch
This commit is contained in:
parent
3c67d89f56
commit
071750b575
2 changed files with 24 additions and 0 deletions
2
dwl.c
2
dwl.c
|
|
@ -476,6 +476,8 @@ applyrules(Client *c)
|
|||
mon = m;
|
||||
}
|
||||
}
|
||||
c->geom.x = (mon->w.width - c->geom.width) / 2 + mon->m.x;
|
||||
c->geom.y = (mon->w.height - c->geom.height) / 2 + mon->m.y;
|
||||
wlr_scene_node_reparent(&c->scene->node, layers[c->isfloating ? LyrFloat : LyrTile]);
|
||||
setmon(c, mon, newtags);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue