From 28f73a175c2d9a7e71e36b127d17237c05a467c7 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 6 Mar 2020 15:34:00 +0100 Subject: [PATCH] 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. Part-of: --- 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 bbe9b5d71..74168bc41 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) => {