diff options
author | sin <sin@2f30.org> | 2015-11-14 14:51:29 +0000 |
---|---|---|
committer | sin <sin@2f30.org> | 2015-11-14 14:52:22 +0000 |
commit | d6e89ef07f46895077807c0db78ffd27334de392 (patch) | |
tree | 243c4729cead1324563a55b02a4bb97eb61a10c8 | |
parent | 62736bf43a528f472dd01c87fa1d4ac247e07043 (diff) | |
download | nnn-d6e89ef07f46895077807c0db78ffd27334de392.tar.gz |
Revert "Run screensaver after a period of idleness"
This reverts commit 1e18b85e56d98ca2daeb7adc587c28f5d653a01f.
Revert until remaining issues are fixed. The filter search expires
after 1 second of inactivity without the revert.
-rw-r--r-- | config.def.h | 2 | ||||
-rw-r--r-- | noice.c | 13 |
2 files changed, 0 insertions, 15 deletions
diff --git a/config.def.h b/config.def.h index 80cb48c..a355333 100644 --- a/config.def.h +++ b/config.def.h @@ -3,8 +3,6 @@ #define EMPTY " " int mtimeorder = 0; /* Set to 1 to sort by time in the default case */ -int idletimeout = 0; /* Screensaver timeout in seconds, 0 to disable */ -char *idlecmd = "rain"; /* The screensaver program */ struct assoc assocs[] = { { "\\.(avi|mp4|mkv|mp3|ogg|flac|mov)$", "mplayer" }, @@ -82,7 +82,6 @@ struct entry *dents; int n, cur; char *path, *oldpath; char *fltr; -int idle; /* * Layout: @@ -260,7 +259,6 @@ initcurses(void) intrflush(stdscr, FALSE); keypad(stdscr, TRUE); curs_set(FALSE); /* Hide cursor */ - timeout(1000); /* One second */ } void @@ -316,10 +314,6 @@ nextsel(char **run) int c, i; c = getch(); - if (c == -1) - idle++; - else - idle = 0; for (i = 0; i < LEN(bindings); i++) if (c == bindings[i].sym) { @@ -885,13 +879,6 @@ moretyping: initcurses(); break; } - /* Screensaver */ - if (idletimeout != 0 && idle == idletimeout) { - idle = 0; - exitcurses(); - spawn(idlecmd, NULL, NULL); - initcurses(); - } } } |