dwm

[fork] dynamic window manager
Log | Files | Refs | README | LICENSE

commit 220aecae1bca5d6162af93a9df990993064d7fbb
parent e0c6d3b9acd671892478fd953dd11931fb1d97dc
Author: hhvn <hayden@haydenvh.com>
Date:   Sun, 13 Dec 2020 21:21:08 +0000

dwm.c: floating windows float to the centre of the x axis by default

Diffstat:
Mdwm.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dwm.c b/dwm.c @@ -1165,7 +1165,8 @@ manage(Window w, XWindowAttributes *wa) updatewmhints(c); /* floating windows: do not cover bar */ - c->y = c->mon->my + gappx * 3; + c->y = c->mon->my + gappx + 15 - borderpx; + c->x = c->mon->my + ((c->mon->mw - c->w) / 2); XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); if (!c->isfloating)