1
0
Fork 0
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:
QC 2015-05-04 10:37:50 +02:00
parent 8d4e1ee8fa
commit a32bd61fea
2 changed files with 3 additions and 3 deletions

View file

@ -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 );

View file

@ -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;
}