From fa9b58627adcec98846bd87974f589d6cd79e19e Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 27 Oct 2009 02:40:40 +0100 Subject: [PATCH] fix seeking with f/b in visualizer visualizer specific timeout is too small, so we need to set it to default value while seeking. --- src/ncmpcpp.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index ad2ae697..07d3ad99 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -1168,6 +1168,9 @@ int main(int argc, char *argv[]) songpos = Mpd.GetElapsedTime(); + int old_timeout = wFooter->GetTimeout(); + wFooter->SetTimeout(ncmpcpp_window_timeout); + SeekingInProgress = 1; *wFooter << fmtBold; while (Keypressed(input, Key.SeekForward) || Keypressed(input, Key.SeekBackward)) @@ -1229,6 +1232,8 @@ int main(int argc, char *argv[]) Mpd.Seek(songpos); UpdateStatusImmediately = 1; + wFooter->SetTimeout(old_timeout); + UnlockProgressbar(); UnlockStatusbar(); }