From 39758c8503fb5390afaceeff3dd5b0bca75feb97 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Mon, 14 Jun 2004 18:32:31 +0000 Subject: Major cleanup of the mpd client code (mpc->mpdclient) git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1481 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen_utils.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/screen_utils.c') 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, -- cgit v1.2.3