From 63ade8a49ce8181339e0689b9528969fc475a302 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 1 Aug 2015 21:30:16 +0200 Subject: terminal: disable terminal foreground state polling This was originally done for zsh; but zsh can manage the terminal state correctly when foregrounding/backgrounding applications if you enable it with "ttyctl -f". So I see no reason to wake up the mpv process once every second anymore. --- osdep/terminal-unix.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'osdep') diff --git a/osdep/terminal-unix.c b/osdep/terminal-unix.c index 8e417a5214..3c2784bacd 100644 --- a/osdep/terminal-unix.c +++ b/osdep/terminal-unix.c @@ -391,8 +391,7 @@ static void *terminal_thread(void *ptr) {.events = POLLIN, .fd = death_pipe[0]}, {.events = POLLIN, .fd = STDIN_FILENO}, }; - // Wait with some timeout, so we can call getch2_poll() frequently. - poll(fds, stdin_ok ? 2 : 1, 1000); + poll(fds, stdin_ok ? 2 : 1, -1); if (fds[0].revents) break; if (fds[1].revents) -- cgit v1.2.3