X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=dinput.c;h=64ce036eff7f6b7f14bf6a3b5115db55726ea107;hb=26b9f3de0ffe471e5335b07454147457e373c037;hp=b69dcb3d0f9ab5fe0e20aef9b58f25ec99bb4063;hpb=340b176de6db87471610c0a75450e0de9535b6ae;p=dmenu.git diff --git a/dinput.c b/dinput.c index b69dcb3..64ce036 100644 --- a/dinput.c +++ b/dinput.c @@ -12,6 +12,7 @@ #ifdef XINERAMA #include #endif +#include /* macros */ #define CLEANMASK(mask) (mask & ~(numlockmask | LockMask)) @@ -30,7 +31,6 @@ static void run(void); static void setup(Bool topbar); #include "config.h" -#include "draw.h" /* variables */ static char *prompt = NULL; @@ -76,11 +76,11 @@ drawinput(void) /* print prompt? */ if(prompt) { dc.w = promptw; - drawtext(&dc, prompt, normcol, False); + drawtext(&dc, prompt, selcol, False); dc.x += dc.w; } dc.w = mw - dc.x; - drawtext(&dc, *text ? text : NULL, selcol, False); + drawtext(&dc, *text ? text : NULL, normcol, False); drawcursor(); XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, mw, mh, 0, 0); XFlush(dpy);