1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Remove debug and add small 2px margin.

This commit is contained in:
Qball Cow 2014-01-07 18:04:39 +01:00
parent 110f85995a
commit 4b5693653f
2 changed files with 1 additions and 2 deletions

View file

@ -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..

View file

@ -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;