aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-18 01:49:53 +0200
committerMax Kellermann <max@duempel.org>2008-09-18 01:49:53 +0200
commitf0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3 (patch)
treeead2fd90d2a19b39c5e1a7a0942df9be77c02831 /src/screen.c
parente54533bd1fad95b149e87918dffca06b0afb5074 (diff)
downloadmpd-f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3.tar.gz
mpd-f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3.tar.xz
mpd-f0aa88e5c18de0b1e4f5d85dd5c3ae5d9be76bc3.zip
use the glib main event loop
This big patch replaces our custom main loop with the event based glib main loop. This has several advantages: we can make all the tiny code bits in the main loop independent from each others, we can add additional file descriptors for polling (e.g. the mpdclient socket). We don't need the ncurses timeout() anymore, because glib will poll stdin for us.
Diffstat (limited to '')
-rw-r--r--src/screen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index beddb95b8..479b1de5d 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -547,8 +547,6 @@ ncurses_init(void)
curs_set(0);
/* enable extra keys */
keypad(stdscr, TRUE);
- /* return from getch() without blocking */
- timeout(SCREEN_TIMEOUT);
/* initialize mouse support */
#ifdef HAVE_GETMOUSE
if (options.enable_mouse)