applied border
authorDaniel Liu <mr.picklepinosaur@gmail.com>
Thu, 10 Sep 2020 21:12:59 +0000 (17:12 -0400)
committerDaniel Liu <mr.picklepinosaur@gmail.com>
Thu, 10 Sep 2020 21:12:59 +0000 (17:12 -0400)
config.def.h
dmenu.c

index e578368..35adb50 100644 (file)
@@ -23,3 +23,6 @@ static unsigned int lines      = 20;
  * for example: " /?\"&[]"
  */
 static const char worddelimiters[] = " ";
+
+/* Size of the window border */
+static const unsigned int border_width = 5;
diff --git a/dmenu.c b/dmenu.c
index 8862150..3f8f689 100644 (file)
--- a/dmenu.c
+++ b/dmenu.c
@@ -692,9 +692,10 @@ 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, mw, mh, border_width,
                            CopyFromParent, CopyFromParent, CopyFromParent,
                            CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
++      XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel);
        XSetClassHint(dpy, win, &ch);