mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Small fix.
This commit is contained in:
parent
69fdeded37
commit
241e4516c0
2 changed files with 4 additions and 5 deletions
|
@ -995,7 +995,7 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi
|
||||||
// then dividing by columns.
|
// then dividing by columns.
|
||||||
unsigned int max_rows = MIN ( config.menu_lines,
|
unsigned int max_rows = MIN ( config.menu_lines,
|
||||||
(unsigned int) (
|
(unsigned int) (
|
||||||
( num_lines + ( columns - num_lines % columns ) ) /
|
( num_lines + ( columns - num_lines % columns ) % columns ) /
|
||||||
( columns )
|
( columns )
|
||||||
) );
|
) );
|
||||||
|
|
||||||
|
@ -1006,7 +1006,7 @@ MenuReturn menu ( char **lines, char **input, char *prompt, Time *time, int *shi
|
||||||
// If it would fit in one column, only use one column.
|
// If it would fit in one column, only use one column.
|
||||||
if ( num_lines < max_elements )
|
if ( num_lines < max_elements )
|
||||||
{
|
{
|
||||||
columns = ( num_lines + ( max_rows - num_lines % max_rows ) ) / max_rows;
|
columns = ( num_lines + ( max_rows - num_lines % max_rows ) % max_rows ) / max_rows;
|
||||||
max_elements = config.menu_lines * columns;
|
max_elements = config.menu_lines * columns;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,7 +186,6 @@ void parse_xresource_free ( void )
|
||||||
void xresource_dump ( void )
|
void xresource_dump ( void )
|
||||||
{
|
{
|
||||||
const char * namePrefix = "rofi";
|
const char * namePrefix = "rofi";
|
||||||
const char * classPrefix = "rofi";
|
|
||||||
unsigned int entries = sizeof ( xrmOptions ) / sizeof ( *xrmOptions );
|
unsigned int entries = sizeof ( xrmOptions ) / sizeof ( *xrmOptions );
|
||||||
for ( unsigned int i = 0; i < entries; ++i )
|
for ( unsigned int i = 0; i < entries; ++i )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue