fix(pulseaudio): connect scroll event handler

Reconnect the event handler that was removed in commit 527144a.

Fixes Alexays#400
This commit is contained in:
crwxrws 2019-07-06 15:29:35 +02:00
parent d607a4e33f
commit 617b370104
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ waybar::modules::Pulseaudio::Pulseaudio(const std::string &id, const Json::Value
throw std::runtime_error("pa_mainloop_run() failed.");
}
pa_threaded_mainloop_unlock(mainloop_);
event_box_.add_events(Gdk::SCROLL_MASK | Gdk::SMOOTH_SCROLL_MASK);
event_box_.signal_scroll_event().connect(sigc::mem_fun(*this, &Pulseaudio::handleScroll));
}
waybar::modules::Pulseaudio::~Pulseaudio() {