dwm

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

commit 4c6820d285b5b7f6b402d3d43a20f5454a691130
parent be256b3d89258718ba4b680f536ee7ee613cf14d
Author: hhvn <hayden@haydenvh.com>
Date:   Fri, 11 Dec 2020 22:26:00 +0000

dwm.c: floating windows do not cover bar

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

diff --git a/dwm.c b/dwm.c @@ -1155,6 +1155,10 @@ manage(Window w, XWindowAttributes *wa) updatewindowtype(c); updatesizehints(c); updatewmhints(c); + + /* floating windows: do not cover bar */ + c->y = c->mon->my + gappx * 3; + XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); if (!c->isfloating) c->isfloating = c->oldstate = trans != None || c->isfixed;