Skip to content

Conversation

@JayadityaGit
Copy link
Contributor

This PR fixes an issue where clicking the speaker icon in the Cinnamon sound applet popup would only mute audio but not restore/unmute it.

Before: Clicking the icon muted sound, but subsequent clicks had no effect.

After: Clicking the icon now correctly toggles between mute and unmute.

Steps to test

Build and restart Cinnamon (Alt+F2 → r → Enter).

Open the sound applet from the panel.

Click the speaker icon next to the volume slider:

First click → mutes audio.

Second click → unmutes audio.

Related issue

Fixes #13053

@JayadityaGit
Copy link
Contributor Author

I’ve noticed that while this fix works in most cases, there are rare situations where clicking the sound icon doesn’t unmute as expected. I’m still trying to identify the exact trigger, but wanted to flag it here so reviewers are aware

@JayadityaGit
Copy link
Contributor Author

mintFix2.trimmed.mp4

@JayadityaGit
Copy link
Contributor Author

JayadityaGit commented Aug 25, 2025

Hi @mtwebster , just wondering if this fix is valid and if there’s any feedback I should take into account. I’d really like to understand if I’m approaching this the right way, so I can improve my future contributions. Thanks!

@mtwebster
Copy link
Member

Hi, this looks ok - it appears the original behavior is due to the fact that you're clicking on the left end of the slider widget. The way the slider popup 'widget' is implemented, any click on that row is fed to the slider itself. And in this case, with the volume all the way down, the muted icon is used. So we're not really muting here, just turning the volume 'off'.

Even with your fix, if you're just a tiny bit off that icon, the underlying handler can still get the event (and make the volume 'off' rather than just 'muted')

I'm going to fix the implementation for the slider itself, so only clicks on the visible slider part will affect its position. This should make your icon handler more reliable.

@mtwebster mtwebster merged commit c42e4d9 into linuxmint:master Nov 10, 2025
1 check passed
@mtwebster
Copy link
Member

One thing to note, actors are reactive by default (you didn't have to explicitly set it - no big deal).

mtwebster added a commit that referenced this pull request Nov 10, 2025
@JayadityaGit JayadityaGit deleted the fix-sound-icon-toggle branch December 12, 2025 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sound applet: Volume icon in popup only mutes, does not unmute

2 participants