mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 08:37:17 +00:00
Fix LLVM compiler warnings.
This commit is contained in:
parent
97c11d7d85
commit
382b93ae03
2 changed files with 5 additions and 4 deletions
|
@ -204,7 +204,7 @@ typedef struct _Settings
|
|||
/** Height of an element in #chars */
|
||||
int element_height;
|
||||
/** Sidebar mode, show the switchers */
|
||||
int sidebar_mode;
|
||||
unsigned int sidebar_mode;
|
||||
/** Lazy filter limit. */
|
||||
unsigned int lazy_filter_limit;
|
||||
} Settings;
|
||||
|
|
|
@ -2265,9 +2265,10 @@ static void run_switcher ( int do_fork, SwitcherMode mode )
|
|||
mode = ( mode + 1 ) % num_switchers;
|
||||
}
|
||||
else if ( retv == PREVIOUS_DIALOG ) {
|
||||
mode = ( mode - 1 ) % num_switchers;
|
||||
if ( mode < 0 ) {
|
||||
if(mode == 0 ) {
|
||||
mode = num_switchers - 1;
|
||||
}else {
|
||||
mode = ( mode - 1 ) % num_switchers;
|
||||
}
|
||||
}
|
||||
else if ( retv == RELOAD_DIALOG ) {
|
||||
|
@ -2520,7 +2521,7 @@ static void parse_cmd_options ( int argc, char ** argv )
|
|||
|
||||
find_arg_int ( argc, argv, "-eh", &( config.element_height ) );
|
||||
|
||||
find_arg_int ( argc, argv, "-lazy-filter-limit", &( config.lazy_filter_limit ) );
|
||||
find_arg_uint ( argc, argv, "-lazy-filter-limit", &( config.lazy_filter_limit ) );
|
||||
|
||||
if ( find_arg ( argc, argv, "-sidebar-mode" ) >= 0 ) {
|
||||
config.sidebar_mode = TRUE;
|
||||
|
|
Loading…
Reference in a new issue