aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-07-27 13:40:32 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-07-27 13:40:32 +0100
commitda7a79912124743e7fbbef81c2450aeaf4ccca87 (patch)
treee7cd14cc9b1fa6b6a19dec9cc6b8b5a3040934b8 /dmenu.c
parent855a56631916bdff1438e11c232b88450f973648 (diff)
downloaddmenu-da7a79912124743e7fbbef81c2450aeaf4ccca87.tar.gz
dmenu-da7a79912124743e7fbbef81c2450aeaf4ccca87.tar.bz2
dmenu-da7a79912124743e7fbbef81c2450aeaf4ccca87.zip
updated to libdraw tip
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dmenu.c b/dmenu.c
index 6fc414c..b460701 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -133,7 +133,7 @@ drawbar(void) {
dc.y = 0;
dc.w = mw;
dc.h = mh;
- drawtext(&dc, NULL, normcol);
+ drawbox(&dc, normcol);
dc.h = dc.font.height + 2;
dc.y = topbar ? 0 : mh - dc.h;
/* print prompt? */
@@ -156,6 +156,7 @@ drawbar(void) {
void
drawmenuh(void) {
+ unsigned long *col;
Item *i;
dc.x += cmdw;
@@ -164,7 +165,9 @@ drawmenuh(void) {
dc.x += dc.w;
for(i = curr; i != next; i = i->right) {
dc.w = MIN(textw(&dc, i->text), mw / 3);
- drawtext(&dc, i->text, (sel == i) ? selcol : normcol);
+ col = (sel == i) ? selcol : normcol;
+ drawbox(&dc, col);
+ drawtext(&dc, i->text, col);
dc.x += dc.w;
}
dc.w = textw(&dc, ">");