From 0968170074b5b71a6a5358464c89263c24269d5b Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 13 May 2019 15:40:02 +0200 Subject: [PATCH] style(media): min-width --- resources/style.css | 1 + src/modules/pulseaudio.cpp | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/style.css b/resources/style.css index 3e61bf0b..f8e68df3 100644 --- a/resources/style.css +++ b/resources/style.css @@ -133,6 +133,7 @@ label:focus { #custom-media { background: #66cc99; color: #2a5c45; + min-width: 150px; } .custom-spotify { diff --git a/src/modules/pulseaudio.cpp b/src/modules/pulseaudio.cpp index 712a2a92..099b1dc4 100644 --- a/src/modules/pulseaudio.cpp +++ b/src/modules/pulseaudio.cpp @@ -73,13 +73,12 @@ void waybar::modules::Pulseaudio::contextStateCb(pa_context *c, void *data) { bool waybar::modules::Pulseaudio::handleVolume(GdkEventScroll *e) { // Avoid concurrent scroll event - bool direction_up = false; - uint16_t change = config_["scroll-step"].isUInt() ? config_["scroll-step"].asUInt() * 100 : 100; - pa_cvolume pa_volume = pa_volume_; - if (scrolling_) { return false; } + bool direction_up = false; + uint16_t change = config_["scroll-step"].isUInt() ? config_["scroll-step"].asUInt() * 100 : 100; + pa_cvolume pa_volume = pa_volume_; scrolling_ = true; if (e->direction == GDK_SCROLL_UP) { direction_up = true;