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.
master
Andrzej Rybczak 16 years ago
parent bd64052f11
commit b01801ea22
  1. 6
      src/playlist.cpp
  2. 1
      src/playlist.h
  3. 2
      src/screen.h

@ -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))

@ -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; }

@ -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);
}

Loading…
Cancel
Save