mirror of
https://github.com/davatorium/rofi.git
synced 2025-04-14 17:43:01 -04:00
Add 4px gap between cursor and last Glyph
This commit is contained in:
parent
b360cdd13c
commit
6cd01dba0e
1 changed files with 2 additions and 2 deletions
|
@ -263,8 +263,8 @@ void textbox_draw ( textbox *tb )
|
|||
|
||||
// calc cursor position
|
||||
XftTextExtentsUtf8 ( display, tb->font, ( unsigned char * ) line, cursor_offset, &extents );
|
||||
// Add a small 2px offset between cursor and last glyph.
|
||||
cursor_x = extents.width;
|
||||
// Add a small 4px offset between cursor and last glyph.
|
||||
cursor_x = extents.width+4;
|
||||
|
||||
// We known size it good, no need for double check.
|
||||
sprintf(line, "%s %s", prompt, text);
|
||||
|
|
Loading…
Add table
Reference in a new issue