dmenu

[fork] X11 menuing
Log | Files | Refs | README | LICENSE

commit 69a9e9d0891ef3aa72f3cd4117c8200e5d1d9c00
parent 4b4a5d73041f456f4390275bde813601ff8fa181
Author: hhvn <hayden@haydenvh.com>
Date:   Sat, 12 Dec 2020 23:32:01 +0000

config.h dmenu.c: make the border colour match that of an active window in dwm

Diffstat:
Mconfig.h | 9+++++----
Mdmenu.c | 4++--
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/config.h b/config.h @@ -13,10 +13,11 @@ static const char *fonts[] = { static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { /* fg bg */ - [SchemeNorm] = { "#ffffff", "#0a0a10" }, - [SchemeSel] = { "#ffffff", "#0a2126" }, - [SchemeOut] = { "#000000", "#00ffff" }, - [SchemeMid] = { "#ffffff", "#0a0a10" }, + [SchemeNorm] = { "#ffffff", "#0a0a10" }, + [SchemeSel] = { "#ffffff", "#0a2126" }, + [SchemeOut] = { "#000000", "#00ffff" }, + [SchemeMid] = { "#ffffff", "#0a0a10" }, + [SchemeBorder] = { "#ffffff", "#892b2b" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines=20; diff --git a/dmenu.c b/dmenu.c @@ -29,7 +29,7 @@ #define NUMBERSBUFSIZE (NUMBERSMAXDIGITS * 2) + 1 /* enums */ -enum { SchemeNorm, SchemeSel, SchemeOut, SchemeMid, SchemeLast }; /* color schemes */ +enum { SchemeBorder, SchemeNorm, SchemeSel, SchemeOut, SchemeMid, SchemeLast }; /* color schemes */ struct item { char *text; @@ -821,7 +821,7 @@ setup(void) CopyFromParent, CopyFromParent, CopyFromParent, CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); if (border_width) - XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel); + XSetWindowBorder(dpy, win, scheme[SchemeBorder][ColBg].pixel); XSetClassHint(dpy, win, &ch);