X-Git-Url: https://git.xinqibao.xyz/dmenu.git/blobdiff_plain/340b176de6db87471610c0a75450e0de9535b6ae..309d071df557142e6efc328bd1475760b4f576e6:/dinput.c 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);