tupdated to libdraw tip - dmenu - Dmenu fork with xft fonts. (HTM) git clone git://r-36.net/dmenu (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit da7a79912124743e7fbbef81c2450aeaf4ccca87 (DIR) parent 855a56631916bdff1438e11c232b88450f973648 (HTM) Author: Connor Lane Smith <cls@lubutu.com> Date: Tue, 27 Jul 2010 13:40:32 +0100 updated to libdraw tip Diffstat: dinput.c | 2 +- dmenu.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) --- (DIR) diff --git a/dinput.c b/dinput.c t@@ -30,7 +30,7 @@ drawbar(void) dc.y = 0; dc.w = mw; dc.h = mh; - drawtext(&dc, NULL, normcol); + drawbox(&dc, normcol); /* print prompt? */ if(prompt) { dc.w = promptw; (DIR) diff --git a/dmenu.c b/dmenu.c t@@ -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? */ t@@ -156,6 +156,7 @@ drawbar(void) { void drawmenuh(void) { + unsigned long *col; Item *i; dc.x += cmdw; t@@ -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, ">");