]> git.sur5r.net Git - i3/i3/commitdiff
i3-input: Fix text drawing offset
authorQuentin Glidic <sardemff7+git@sardemff7.net>
Tue, 28 Aug 2012 09:44:09 +0000 (11:44 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 28 Aug 2012 10:06:03 +0000 (12:06 +0200)
i3-input/main.c

index fbc551e684a247cece513f570505ec318bd9f436..b3e626e617c8f0e11f51dcbf863aedbcd507a680 100644 (file)
@@ -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);
     }