From 4b5693653ffe0b458e8771f8c127f0b5ca90c275 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Tue, 7 Jan 2014 18:04:39 +0100 Subject: [PATCH] Remove debug and add small 2px margin. --- simpleswitcher.c | 1 - textbox.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/simpleswitcher.c b/simpleswitcher.c index ea715695..7746ff85 100644 --- a/simpleswitcher.c +++ b/simpleswitcher.c @@ -799,7 +799,6 @@ int menu(char **lines, char **input, char *prompt, int selected, Time *time) break; } int length_prefix = calculate_common_prefix(filtered, max_lines); - printf("Prefix: %s:%s:%d\n", filtered[0],text->text, length_prefix); if(length_prefix && strncasecmp(filtered[0], text->text, length_prefix)) { // Do not want to modify original string, so make copy. // not eff.. diff --git a/textbox.c b/textbox.c index b66c1f90..18e6ceb7 100644 --- a/textbox.c +++ b/textbox.c @@ -210,7 +210,7 @@ void textbox_draw(textbox *tb) XftTextExtents8(display, tb->font, (unsigned char*)line, length, &extents); line_width = extents.width; - int x = 0, y = tb->font->ascent; + int x = 2, y = tb->font->ascent; if (tb->flags & TB_RIGHT) x = tb->w - line_width; if (tb->flags & TB_CENTER) x = (tb->w - line_width) / 2;