update screen in TraceMpdStatus(), not in the main loop

this makes screen update even if ncmpcpp is in Window::GetString().
This commit is contained in:
Andrzej Rybczak
2009-10-28 19:21:35 +01:00
parent b9a14e37ab
commit db5efc6eb9
2 changed files with 2 additions and 1 deletions

View File

@@ -402,7 +402,6 @@ int main(int argc, char *argv[])
}
// header stuff end
myScreen->Update();
if (input != ERR)
myScreen->RefreshWindow();
wFooter->ReadKey(input);

View File

@@ -137,6 +137,8 @@ void TraceMpdStatus()
gettimeofday(&past, 0);
}
myScreen->Update();
if (myScreen->ActiveWindow() == myPlaylist->Items
&& Timer.tv_sec == myPlaylist->Timer()+Config.playlist_disable_highlight_delay
&& myPlaylist->Items->isHighlighted()