Xinqi Bao's Git
projects
/
dmenu.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
fixed no-input invisible text bug
[dmenu.git]
/
dinput.c
diff --git
a/dinput.c
b/dinput.c
index
b69dcb3
..
64ce036
100644
(file)
--- a/
dinput.c
+++ b/
dinput.c
@@
-12,6
+12,7
@@
#ifdef XINERAMA
#include <X11/extensions/Xinerama.h>
#endif
#ifdef XINERAMA
#include <X11/extensions/Xinerama.h>
#endif
+#include <draw.h>
/* macros */
#define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))
/* macros */
#define CLEANMASK(mask) (mask & ~(numlockmask | LockMask))
@@
-30,7
+31,6
@@
static void run(void);
static void setup(Bool topbar);
#include "config.h"
static void setup(Bool topbar);
#include "config.h"
-#include "draw.h"
/* variables */
static char *prompt = NULL;
/* variables */
static char *prompt = NULL;
@@
-76,11
+76,11
@@
drawinput(void)
/* print prompt? */
if(prompt) {
dc.w = promptw;
/* print prompt? */
if(prompt) {
dc.w = promptw;
- drawtext(&dc, prompt,
norm
col, False);
+ drawtext(&dc, prompt,
sel
col, False);
dc.x += dc.w;
}
dc.w = mw - dc.x;
dc.x += dc.w;
}
dc.w = mw - dc.x;
- drawtext(&dc, *text ? text : NULL,
sel
col, False);
+ drawtext(&dc, *text ? text : NULL,
norm
col, False);
drawcursor();
XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, mw, mh, 0, 0);
XFlush(dpy);
drawcursor();
XCopyArea(dpy, dc.drawable, win, dc.gc, 0, 0, mw, mh, 0, 0);
XFlush(dpy);