[gnome-shell/wip/carlosg/no-wacom-leds: 1284/1284] windowManager: Do not set Wacom LED state through g-s-d




commit b253dba9ad6f995e774d20f87164c6c6b4d285d4
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Mar 6 15:34:00 2020 +0100

    windowManager: Do not set Wacom LED state through g-s-d
    
    This piece of machinery is going away, in favor of the own kernel's
    support.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1075
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1075>

 js/ui/windowManager.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index bbe9b5d71f..74168bc415 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -886,7 +886,7 @@ var WindowManager = class {
                                                         log(error.message);
                                                 });
 
-        global.display.connect('pad-mode-switch', (display, pad, group, mode) => {
+        global.display.connect('pad-mode-switch', (display, pad, _group, _mode) => {
             let labels = [];
 
             // FIXME: Fix num buttons
@@ -895,10 +895,8 @@ var WindowManager = class {
                 labels.push(str ?? '');
             }
 
-            if (this._gsdWacomProxy) {
+            if (this._gsdWacomProxy)
                 this._gsdWacomProxy.SetOLEDLabelsRemote(pad.get_device_node(), labels);
-                this._gsdWacomProxy.SetGroupModeLEDRemote(pad.get_device_node(), group, mode);
-            }
         });
 
         global.display.connect('init-xserver', (display, task) => {


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