From 3a034355abd4a975ed1a29aa054befaf35a0988a Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 10 Mar 2024 16:10:19 +0530 Subject: alwayscenter --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 600b9d6..78c4d4a 100644 --- a/dwl.c +++ b/dwl.c @@ -467,6 +467,8 @@ applyrules(Client *c) } } } + 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; setmon(c, mon, newtags); } -- cgit v1.2.3