Skip to content

Commit

Permalink
volume: hide popover after scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
NamorNiradnug committed Sep 24, 2023
1 parent 71ba046 commit 35585c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panel/widgets/volume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ void WayfireVolume::set_volume(pa_volume_t volume, set_volume_flags_t flags)

void WayfireVolume::on_volume_scroll(GdkEventScroll *event)
{
button->set_keyboard_interactive(false);
set_volume(std::clamp(volume_scale.get_target_value() - event->delta_y * max_norm * scroll_sensitivity,
0.0, max_norm));

button->grab_focus();
button->set_keyboard_interactive();
check_set_popover_timeout();
}

Expand Down

0 comments on commit 35585c3

Please sign in to comment.