dmenu

git clone git://mattcarlson.org/repos/dmenu.git
Log | Files | Refs

commit 27ade9cd63cec026edb1fc80b9904e7f2c810e28
parent 56e1a9c216aa098f70384bb7519487d2d1b95c66
Author: Matthew Carlson <matt@mcarlson.xyz>
Date:   Thu,  1 Jul 2021 19:12:05 +0000

border

Diffstat:
Mconfig.h | 3+++
Mdmenu.c | 3++-
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.h b/config.h @@ -21,3 +21,6 @@ static unsigned int lines = 0; * 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 @@ -659,9 +659,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);