refactor(pulseaudio): proper scroll override

This commit is contained in:
Alex
2019-06-16 15:07:50 +02:00
parent cda6282277
commit 527144a440
2 changed files with 8 additions and 14 deletions

View File

@ -21,14 +21,13 @@ class Pulseaudio : public ALabel {
static void sourceInfoCb(pa_context*, const pa_source_info* i, int, void* data);
static void serverInfoCb(pa_context*, const pa_server_info*, void*);
static void volumeModifyCb(pa_context*, int, void*);
bool handleVolume(GdkEventScroll* e);
bool handleScroll(GdkEventScroll* e);
const std::string getPortIcon() const;
pa_threaded_mainloop* mainloop_;
pa_mainloop_api* mainloop_api_;
pa_context* context_;
std::mutex mutex_;
// SINK
uint32_t sink_idx_{0};
uint16_t volume_;