diff --git a/src/panel/widgets/volume.cpp b/src/panel/widgets/volume.cpp index 587eca2f..bf0e1c93 100644 --- a/src/panel/widgets/volume.cpp +++ b/src/panel/widgets/volume.cpp @@ -138,6 +138,8 @@ void WayfireVolume::on_volume_scroll(GdkEventScroll *event) int32_t current_volume = volume_scale.get_target_value(); const int32_t adjustment_step = max_norm * INCREMENT_STEP_PC; + button->set_keyboard_interactive(false); + /* Adjust volume on button scroll */ if ((event->direction == GDK_SCROLL_UP) || ((event->direction == GDK_SCROLL_SMOOTH) && (event->delta_y < 0))) @@ -151,7 +153,7 @@ void WayfireVolume::on_volume_scroll(GdkEventScroll *event) set_volume(std::max(current_volume - adjustment_step, 0)); } - button->grab_focus(); + button->set_keyboard_interactive(); check_set_popover_timeout(); }