cosmic-applets/cosmic-applet-audio
Lionel DARNIS 5b838a6795 fix(audio): initialize volume ceilings at startup
max_sink_volume and max_source_volume were only computed in the
TogglePopup handler, so they kept their Default value of 0 until the
popup had been opened once. The scroll-to-adjust handler clamps against
max_sink_volume, which meant every wheel event resolved to
SetSinkVolume(0) until the user had clicked the applet icon: scrolling
up did nothing and scrolling down muted the sink.

Extract refresh_volume_limits() and call it from init() as well as from
TogglePopup, so the popup still picks up amplification config changes
made during the session.

This is the actual cause of "scroll does not adjust volume until the
applet is clicked once" — the wheel events were reaching the widget all
along, which is why a single click made scrolling work on plain hover
from then on.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-31 09:33:16 +02:00
..
data i18n: translate desktop entries with xdgen (#1328) 2026-03-02 11:33:29 -07:00
i18n i18n: translation updates from weblate 2026-06-23 08:02:17 +02:00
src fix(audio): initialize volume ceilings at startup 2026-07-31 09:33:16 +02:00
Cargo.toml chore: bump version to 1.3.0 2026-07-22 15:57:00 +02:00
i18n.toml wip: update libcosmic (#93) 2023-06-01 12:23:12 -04:00