From: Quentin Glidic Date: Tue, 28 Aug 2012 09:44:09 +0000 (+0200) Subject: i3-input: Fix text drawing offset X-Git-Tag: 4.3~54 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a007283773b9611e9f50dd6dff49fae0069b520d;p=i3%2Fi3 i3-input: Fix text drawing offset --- diff --git a/i3-input/main.c b/i3-input/main.c index fbc551e6..b3e626e6 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -125,7 +125,7 @@ static int handle_expose(void *data, xcb_connection_t *conn, xcb_expose_event_t if (input_position > 0) { 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); }