aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c.rej
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu.c.rej')
-rw-r--r--dmenu.c.rej15
1 files changed, 15 insertions, 0 deletions
diff --git a/dmenu.c.rej b/dmenu.c.rej
new file mode 100644
index 0000000..2424a2d
--- /dev/null
+++ b/dmenu.c.rej
@@ -0,0 +1,15 @@
+--- dmenu.c
++++ dmenu.c
+@@ -659,9 +659,11 @@ setup(void)
+ swa.override_redirect = True;
+ swa.background_pixel = scheme[SchemeNorm][ColBg].pixel;
+ swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
+- win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0,
++ win = XCreateWindow(dpy, parentwin, x, y - (topbar ? 0 : border_width * 2), mw - border_width * 2, mh, border_width,
+ CopyFromParent, CopyFromParent, CopyFromParent,
+ CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
++ if (border_width)
++ XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel);
+ XSetClassHint(dpy, win, &ch);
+
+