aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-03-10 16:10:19 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-03-10 16:10:19 +0530
commit3a034355abd4a975ed1a29aa054befaf35a0988a (patch)
tree9192a95e7cebb60187e739748c6625116b8bd745 /dwl.c
parent9510ef8cc6ff3871307b96ce5fe80a5e96e6bc3f (diff)
alwayscenter
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
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);
}