update playlist's timer while scrolling with fancy_scrolling disabled

not updating it caused highlight to be disabled
during scrolling if key was being held long enough.
This commit is contained in:
Andrzej Rybczak
2010-02-05 17:19:53 +01:00
parent bd64052f11
commit b01801ea22
3 changed files with 8 additions and 1 deletions

View File

@@ -241,6 +241,12 @@ void Playlist::SpacePressed()
}
}
void Playlist::ReadKey(int &key)
{
w->ReadKey(key);
UpdateTimer();
}
void Playlist::MouseButtonPressed(MEVENT me)
{
if (w == Items && !Items->Empty() && Items->hasCoords(me.x, me.y))

View File

@@ -40,6 +40,7 @@ class Playlist : public Screen<Window>
virtual void EnterPressed();
virtual void SpacePressed();
virtual void ReadKey(int &);
virtual void MouseButtonPressed(MEVENT);
virtual bool isTabbable() { return true; }

View File

@@ -234,7 +234,7 @@ template <typename WindowType> void Screen<WindowType>::Scroll(Where where, cons
TraceMpdStatus();
w->Scroll(where);
w->Refresh();
w->ReadKey(in);
ReadKey(in);
}
w->SetTimeout(ncmpcpp_window_timeout);
}