myvxwm

[fork] my vxwm config (optimised for my T480)
git clone https://git.lukeonline.net/repos/myvxwm
Log | Files | Refs | README | LICENSE

commit 3a8d46753f1da5491276c10185a98aca8adbca59
parent 5c692548d21955bfc9f81b89edcc73b1e538fb34
Author: wh1tepearl <wh1tepearl@gmail.com>
Date:   Sat,  7 Feb 2026 16:06:17 +0000

Make windows spawn perfectly centered with ALWAYS_CENTER_NEW_FLOATING_WINDOWS

Diffstat:
Mvxwm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vxwm.c b/vxwm.c @@ -1214,8 +1214,8 @@ manage(Window w, XWindowAttributes *wa) updatesizehints(c); updatewmhints(c); #if ALWAYS_CENTER_NEW_FLOATING_WINDOWS - c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2; - c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2; + c->x = c->mon->wx + (c->mon->ww - WIDTH(c)) / 2; + c->y = c->mon->wy + (c->mon->wh - HEIGHT(c)) / 2; #endif XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); grabbuttons(c, 0);