fix visualizer

This commit is contained in:
Andrzej Rybczak
2009-10-25 23:24:12 +01:00
parent b947575528
commit dd866e9337
4 changed files with 19 additions and 2 deletions

View File

@@ -1990,6 +1990,13 @@ int main(int argc, char *argv[])
myServerInfo->SwitchTo();
}
// key mapping end
# ifdef ENABLE_VISUALIZER
// visualizer sets timmeout to 40ms, but since only it needs such small
// value, we should restore defalt one after switching to another screen.
if (wFooter->GetTimeout() < ncmpcpp_window_timeout && myScreen != myVisualizer)
wFooter->SetTimeout(ncmpcpp_window_timeout);
# endif // ENABLE_VISUALIZER
}
return 0;
}