From 62fac878328bc3c30a216e425c354f77d108c290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B8rum?= Date: Thu, 30 May 2019 18:07:04 +0200 Subject: [PATCH] Add back 'l' switch --- i3lock.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/i3lock.c b/i3lock.c index 89b3d59..395ebff 100644 --- a/i3lock.c +++ b/i3lock.c @@ -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.");