mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
DMENU special return value starts at 10. Issue: #154
This commit is contained in:
parent
8d4e1ee8fa
commit
a32bd61fea
2 changed files with 3 additions and 3 deletions
|
@ -203,7 +203,7 @@ int dmenu_switcher_dialog ( char **input )
|
|||
fflush ( stdout );
|
||||
|
||||
restart = FALSE;
|
||||
retv = -( mretv & MENU_LOWER_MASK ) - 1;
|
||||
retv = 10+ ( mretv & MENU_LOWER_MASK ) ;
|
||||
}
|
||||
} while ( restart );
|
||||
|
||||
|
|
|
@ -1763,8 +1763,8 @@ int main ( int argc, char *argv[] )
|
|||
if ( retv == FALSE ) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
else if ( retv < 0 ) {
|
||||
return -retv;
|
||||
else if ( retv >= 10 ) {
|
||||
return retv;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue