summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c
index 4e2ba4e..811bfdd 100644
--- a/src/input.c
+++ b/src/input.c
@@ -310,6 +310,13 @@ update_input_window (screen_info *s, char *prompt, char *input, int input_len)
defaults.bar_x_padding + prompt_width,
defaults.bar_y_padding + defaults.font->max_bounds.ascent, input,
input_len);
+
+ /* Draw a cheap-o cursor. */
+ XDrawLine (dpy, s->input_window, s->normal_gc,
+ defaults.bar_x_padding * 2 + prompt_width + input_width + 2,
+ defaults.bar_y_padding + 1,
+ defaults.bar_x_padding * 2 + prompt_width + input_width + 2,
+ defaults.bar_y_padding + FONT_HEIGHT (defaults.font) - 1);
}
char *