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:
@@ -402,7 +402,6 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
// header stuff end
|
// header stuff end
|
||||||
|
|
||||||
myScreen->Update();
|
|
||||||
if (input != ERR)
|
if (input != ERR)
|
||||||
myScreen->RefreshWindow();
|
myScreen->RefreshWindow();
|
||||||
wFooter->ReadKey(input);
|
wFooter->ReadKey(input);
|
||||||
|
|||||||
@@ -137,6 +137,8 @@ void TraceMpdStatus()
|
|||||||
gettimeofday(&past, 0);
|
gettimeofday(&past, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
myScreen->Update();
|
||||||
|
|
||||||
if (myScreen->ActiveWindow() == myPlaylist->Items
|
if (myScreen->ActiveWindow() == myPlaylist->Items
|
||||||
&& Timer.tv_sec == myPlaylist->Timer()+Config.playlist_disable_highlight_delay
|
&& Timer.tv_sec == myPlaylist->Timer()+Config.playlist_disable_highlight_delay
|
||||||
&& myPlaylist->Items->isHighlighted()
|
&& myPlaylist->Items->isHighlighted()
|
||||||
|
|||||||
Reference in New Issue
Block a user