summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2019-05-23 21:08:20 +0200
committerCarlos Garnacho <mrgarnacho@gmail.com>2019-08-05 22:40:15 +0000
commit12388c35562acea42b3e4c52c85271c435151d63 (patch)
tree5c925da558e47a185f0862b887877ce6cb1aad28
parent8606b9bd78a322c4252c43970c3d185a3b3bfc8d (diff)
downloadgnome-settings-daemon-12388c35562acea42b3e4c52c85271c435151d63.tar.gz
keyboard: Apply bell settings only on X11
Those settings don't apply on wayland, we could care really hard to emulate volume/pitch/duration there but this is essentially an easter egg. Just avoid these on Wayland sessions.
-rw-r--r--plugins/keyboard/gsd-keyboard-manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index 3b919aed..2feb87ef 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -155,6 +155,9 @@ apply_bell (GsdKeyboardManager *manager)
GsdBellMode bell_mode;
int click_volume;
+ if (gnome_settings_is_wayland ())
+ return;
+
g_debug ("Applying the bell settings");
settings = manager->settings;
click = g_settings_get_boolean (settings, KEY_CLICK);