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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1075>
This commit is contained in:
Carlos Garnacho 2020-03-06 15:34:00 +01:00
parent bbf1fc28ca
commit 28f73a175c

View File

@ -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) => {