mirror of
https://github.com/davatorium/rofi.git
synced 2025-07-31 21:59:25 -04:00
Remove debug and add small 2px margin.
This commit is contained in:
parent
110f85995a
commit
4b5693653f
2 changed files with 1 additions and 2 deletions
|
@ -799,7 +799,6 @@ int menu(char **lines, char **input, char *prompt, int selected, Time *time)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
int length_prefix = calculate_common_prefix(filtered, max_lines);
|
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)) {
|
if(length_prefix && strncasecmp(filtered[0], text->text, length_prefix)) {
|
||||||
// Do not want to modify original string, so make copy.
|
// Do not want to modify original string, so make copy.
|
||||||
// not eff..
|
// not eff..
|
||||||
|
|
|
@ -210,7 +210,7 @@ void textbox_draw(textbox *tb)
|
||||||
XftTextExtents8(display, tb->font, (unsigned char*)line, length, &extents);
|
XftTextExtents8(display, tb->font, (unsigned char*)line, length, &extents);
|
||||||
line_width = extents.width;
|
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_RIGHT) x = tb->w - line_width;
|
||||||
if (tb->flags & TB_CENTER) x = (tb->w - line_width) / 2;
|
if (tb->flags & TB_CENTER) x = (tb->w - line_width) / 2;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue