From: Kalle Wallin Date: Sun, 28 Mar 2004 14:53:22 +0000 (+0000) Subject: Clear top window when the header changes. X-Git-Tag: v0.12_alpha1~634 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262;p=ncmpc.git Clear top window when the header changes. git-svn-id: https://svn.musicpd.org/ncmpc/trunk@521 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- diff --git a/screen.c b/screen.c index 7e3e51d..8d14376 100644 --- a/screen.c +++ b/screen.c @@ -68,8 +68,15 @@ static void paint_top_window(char *header, int volume, int clear) { static int prev_volume = -1; + static int prev_header_len = -1; WINDOW *w = screen->top_window.w; + if(prev_header_len!=strlen(header)) + { + prev_header_len = strlen(header); + clear = 1; + } + if(clear) { wclear(w);