diff options
author | Kalle Wallin <kaw@linux.se> | 2004-06-14 18:32:31 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-06-14 18:32:31 +0000 |
commit | 39758c8503fb5390afaceeff3dd5b0bca75feb97 (patch) | |
tree | 94f42a18c5cb0da8778e8525ded49fb98012bbfc /src/screen_utils.c | |
parent | 7844008980d4d1b9cb7cbd4dda4ae912e12dd7a9 (diff) | |
download | mpd-39758c8503fb5390afaceeff3dd5b0bca75feb97.tar.gz mpd-39758c8503fb5390afaceeff3dd5b0bca75feb97.tar.xz mpd-39758c8503fb5390afaceeff3dd5b0bca75feb97.zip |
Major cleanup of the mpd client code (mpc->mpdclient)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1481 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/screen_utils.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/screen_utils.c b/src/screen_utils.c index b14b2a0ee..6473244bb 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -26,8 +26,7 @@ #include "config.h" #include "ncmpc.h" -#include "libmpdclient.h" -#include "mpc.h" +#include "mpdclient.h" #include "support.h" #include "command.h" #include "options.h" @@ -55,7 +54,9 @@ screen_getch(WINDOW *w, char *prompt) curs_set(1); timeout(-1); - key = wgetch(w); + while( (key=wgetch(w)) == ERR ) + ; + if( key==KEY_RESIZE ) screen_resize(); @@ -92,7 +93,7 @@ screen_getstr(WINDOW *w, char *prompt) /* query user for a string and find it in a list window */ int screen_find(screen_t *screen, - mpd_client_t *c, + mpdclient_t *c, list_window_t *lw, int rows, command_t findcmd, |