i3-input: Fix text drawing offset

This commit is contained in:
Quentin Glidic 2012-08-28 11:44:09 +02:00 committed by Michael Stapelberg
parent af15087b99
commit a007283773

View File

@ -125,7 +125,7 @@ static int handle_expose(void *data, xcb_connection_t *conn, xcb_expose_event_t
if (input_position > 0) if (input_position > 0)
{ {
i3String *input = i3string_from_ucs2(glyphs_ucs, input_position); i3String *input = i3string_from_ucs2(glyphs_ucs, input_position);
draw_text(input, pixmap, pixmap_gc, 4, 4, 492); draw_text(input, pixmap, pixmap_gc, prompt_offset + 4, 4, 492);
i3string_free(input); i3string_free(input);
} }