diff options
author | Florian Zipperle <zipperle@users.noreply.github.com> | 2016-07-20 08:50:07 +0200 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2016-07-20 07:50:07 +0100 |
commit | cca7d4e6c39d4fd36ca4cd7dd8333bb1cc313a62 (patch) | |
tree | a4ebbcd2ec44721d7ef2c05118eb45161a1a28e5 /i3lock.c | |
parent | 679fb57acc09a149fb6005b481b8ae0f6b994498 (diff) |
Removed obsolete inactivity timeout (#84)
* Removed obsolete inactivity timeout
Diffstat (limited to 'i3lock.c')
-rw-r--r-- | i3lock.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -45,7 +45,6 @@ typedef void (*ev_callback_t)(EV_P_ ev_timer *w, int revents); char color[7] = "ffffff"; -int inactivity_timeout = 30; uint32_t last_resolution[2]; xcb_window_t win; static xcb_cursor_t cursor; @@ -806,10 +805,7 @@ int main(int argc, char *argv[]) { fprintf(stderr, "DPMS support has been removed from i3lock. Please see the manpage i3lock(1).\n"); break; case 'I': { - int time = 0; - if (sscanf(optarg, "%d", &time) != 1 || time < 0) - errx(EXIT_FAILURE, "invalid timeout, it must be a positive integer\n"); - inactivity_timeout = time; + fprintf(stderr, "Inactivity timeout only makes sense with DPMS, which was removed. Please see the manpage i3lock(1).\n"); break; } case 'c': { |