Add back 'l' switch

This commit is contained in:
Martin Dørum 2019-05-30 18:07:04 +02:00
parent 82ca387e5a
commit 62fac87832
1 changed files with 7 additions and 0 deletions

View File

@ -1533,6 +1533,13 @@ int main(int argc, char *argv[]) {
case 'f':
show_failed_attempts = true;
break;
case 'l':
#if defined(__linux__)
lock_tty_switching = true;
#else
errx(EXIT_FAILURE, "TTY switch locking is only supported on Linux.");
#endif
break;
case 'r':
if (internal_line_source != 0) {
errx(EXIT_FAILURE, "i3lock-color: Options line-uses-ring and line-uses-inside conflict.");