style(media): min-width

This commit is contained in:
Alex 2019-05-13 15:40:02 +02:00
parent 362c393b1d
commit 0968170074
2 changed files with 4 additions and 4 deletions

View File

@ -133,6 +133,7 @@ label:focus {
#custom-media {
background: #66cc99;
color: #2a5c45;
min-width: 150px;
}
.custom-spotify {

View File

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