Bug 501019

Summary: When in a plasma session there are button click sounds in GTK programs
Product: [I don't know] kde Reporter: Vorpal <kdebugs>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: isma.af, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: sound.mkv

Description Vorpal 2025-03-03 19:07:23 UTC
Created attachment 179077 [details]
sound.mkv

SUMMARY
When running in a KDE plasma session (and ONLY in a KDE plasma session) I get "button click sounds" in GTK programs. But not in native Qt programs. Flatpaks are not affected.

Muting the "Playback stream" "Notification Sounds" shuts up this sound. I have searched high and low for a setting to just turn the button interaction sound off, but found nothing.

STEPS TO REPRODUCE
1. Log in to KDE Plasma (X11 or Wayland, both are affected)
2. Start any GTK 2 or 3 program, such as Gimp or dconf-editor
3. Click on a "normal" button with text on it.

E.g. for Gimp you need to click on the buttons in the settings dialog, not on the normal tool selector. For dconf-editor you can click the "search icon". 

GTK 4 programs using libadwaita appear not to be affected.

NOTE: This does NOT happen in for example a Cinnamon session. But it does happen in KDE Plasma.

OBSERVED RESULT
A "pock" sound. See attached screen recording.


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
Comment 1 Vorpal 2025-03-03 19:12:08 UTC
Addendum: I forgot to mention that this is a new bug as of the past few days.
Comment 2 Nate Graham 2025-03-05 16:52:26 UTC
Any idea what this could be, Ismael?
Comment 3 Ismael Asensio 2025-03-05 18:33:40 UTC
This seems to be the Gtk property 'enable-input-feedback-sounds': https://docs.gtk.org/gtk3/property.Settings.gtk-enable-input-feedback-sounds.html, which some of Gtk2, Gtk3 properties honor. It makes sense that it doesn't affect adwaita apps, as they are generally moving away from any kind of sound feedback.
 
You can check it via GSettings: `gsettings get org.gnome.desktop.sound input-feedback-sounds`
And also disable them: `gsettings set org.gnome.desktop.sound input-feedback-sounds false` (at least for Gtk3)

As of plasma we don't do anything regarding this property as there is no direct equivalent. To synchronize the notifications property we act on a different property instead  (`https://docs.gtk.org/gtk3/property.Settings.gtk-enable-event-sounds.html`) because it better matches our scope of just notification events.