diff options
Diffstat (limited to 'source/theme.c')
-rw-r--r-- | source/theme.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/theme.c b/source/theme.c index 92cf416a..9691b77c 100644 --- a/source/theme.c +++ b/source/theme.c @@ -635,6 +635,9 @@ int distance_get_pixel ( RofiDistance d, RofiOrientation ori ) if ( d.type == ROFI_PU_EM ) { return d.distance * textbox_get_estimated_char_height (); } + else if ( d.type == ROFI_PU_CH ) { + return d.distance * textbox_get_estimated_ch (); + } else if ( d.type == ROFI_PU_PERCENT ) { if ( ori == ROFI_ORIENTATION_VERTICAL ) { int height = 0; |