Stop MPRIS module from updating every ~20ms as onPlayerMetadata(), onPlayerPlay()

callbacks get triggered without regard for update interval.
This commit is contained in:
Skirmantas Kligys
2023-07-03 13:46:50 -07:00
parent 91588fb8bb
commit c2f9d889f4
2 changed files with 7 additions and 1 deletions

View File

@ -80,6 +80,7 @@ class Mpris : public ALabel {
std::string lastPlayer;
util::SleeperThread thread_;
std::chrono::time_point<std::chrono::system_clock> last_update_;
};
} // namespace waybar::modules::mpris