From 4f9abf0d35031c04a260535f88fdc417347f8e5b Mon Sep 17 00:00:00 2001 From: flodavid Date: Sun, 8 Feb 2026 23:55:27 +0100 Subject: [PATCH] Fix the microphone symbol appearing on playback The symbol appeared when there was no input device - Also reduce margin between microphone symbol and speaker one, from 18px to 8px --- src/Services/Volume-control.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Services/Volume-control.vala b/src/Services/Volume-control.vala index 839d3186..66d9289f 100644 --- a/src/Services/Volume-control.vala +++ b/src/Services/Volume-control.vala @@ -233,7 +233,9 @@ public class Sound.Services.VolumeControlPulse : VolumeControl { this.notify_property ("micMute"); } - var listening = (i.state == PulseAudio.SourceState.RUNNING); + // If there is no input device, SourceInfo will correspond to the playback device, which we want to ignore. + // In that scenario, monitor_of_sink != INVALID_INDEX and monitor_of_sink_name is set. + var listening = i.state == PulseAudio.SourceState.RUNNING && i.monitor_of_sink == PulseAudio.INVALID_INDEX; if (_is_listening != listening) { _is_listening = listening; this.notify_property ("is-listening");