Skip to content

Commit 827c268

Browse files
committed
volume: hide popover after scrolling
1 parent 11bab7a commit 827c268

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/panel/widgets/volume.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ void WayfireVolume::on_volume_scroll(GdkEventScroll *event)
138138
int32_t current_volume = volume_scale.get_target_value();
139139
const int32_t adjustment_step = max_norm * INCREMENT_STEP_PC;
140140

141+
button->set_keyboard_interactive(false);
142+
141143
/* Adjust volume on button scroll */
142144
if ((event->direction == GDK_SCROLL_UP) ||
143145
((event->direction == GDK_SCROLL_SMOOTH) && (event->delta_y < 0)))
@@ -151,7 +153,7 @@ void WayfireVolume::on_volume_scroll(GdkEventScroll *event)
151153
set_volume(std::max(current_volume - adjustment_step, 0));
152154
}
153155

154-
button->grab_focus();
156+
button->set_keyboard_interactive();
155157
check_set_popover_timeout();
156158
}
157159

0 commit comments

Comments
 (0)