diff --git a/README b/README index 14cbddd..d038918 100644 --- a/README +++ b/README @@ -4,8 +4,9 @@ dmenu is an efficient dynamic menu for X. Patches ------- -+ Case insensitive -+ Center ++ case insensitive ++ center ++ border (manually) Requirements ------------ diff --git a/config.def.h b/config.def.h index 1edb647..fc00672 100644 --- a/config.def.h +++ b/config.def.h @@ -21,3 +21,5 @@ static unsigned int lines = 0; * for example: " /?\"&[]" */ static const char worddelimiters[] = " "; + +static const unsigned int border_width = 5; diff --git a/config.h b/config.h index 8ba4533..11bbf60 100644 --- a/config.h +++ b/config.h @@ -22,3 +22,5 @@ static unsigned int lines = 6; * for example: " /?\"&[]" */ static const char worddelimiters[] = " "; + +static const unsigned int border_width = 3; diff --git a/dmenu.c b/dmenu.c index 297c7fd..8bbeff7 100644 --- a/dmenu.c +++ b/dmenu.c @@ -669,9 +669,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);