commit a7211ad25a3aac334a5a92ac300844ef64af3ae0
parent 31e923983e8bc1072e14f372a051ab794dfd2192
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Tue, 18 Nov 2025 14:38:16 +0100
increase borderpx, fix bar position after resolution change
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -1,7 +1,7 @@
/* See LICENSE file for copyright and license details. */
/* appearance */
-static const unsigned int borderpx = 0; /* border pixel of windows */
+static const unsigned int borderpx = 2; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const unsigned int gappih = 10; /* horiz inner gap between windows */
static const unsigned int gappiv = 10; /* vert inner gap between windows */
diff --git a/dwm.c b/dwm.c
@@ -686,7 +686,7 @@ configurenotify(XEvent *e)
for (c = m->clients; c; c = c->next)
if (c->isfullscreen)
resizeclient(c, m->mx, m->my, m->mw, m->mh);
- XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
+ XMoveResizeWindow(dpy, m->barwin, m->wx + sp, m->by + vp, m->ww - 2 *sp, bh);
}
focus(NULL);
arrange(NULL);