[gnome-settings-daemon/wip/carlosg/x11less-sessions: 9/13] keyboard: Apply bell settings only on X11



commit 12388c35562acea42b3e4c52c85271c435151d63
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu May 23 21:08:20 2019 +0200

    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.

 plugins/keyboard/gsd-keyboard-manager.c | 3 +++
 1 file changed, 3 insertions(+)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]