aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-28 14:53:22 +0000
committerKalle Wallin <kaw@linux.se>2004-03-28 14:53:22 +0000
commitb24947b96670b3e2f7fe7d23c06e1ec2b4b7c262 (patch)
treeed8af27122a4fe4588fc5d69f8a9b68d97d4ac2c
parent77992b5b09fb048809922d01a8a25885d2ec2685 (diff)
downloadmpd-b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262.tar.gz
mpd-b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262.tar.xz
mpd-b24947b96670b3e2f7fe7d23c06e1ec2b4b7c262.zip
Clear top window when the header changes.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@521 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--screen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index 7e3e51d7f..8d14376ff 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);