diff --git a/dwl.c b/dwl.c index 4118fd8..b0cfb50 100644 --- a/dwl.c +++ b/dwl.c @@ -467,6 +467,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); }