padOsd: peek pads attached to the same tablet
https://bugzilla.gnome.org/show_bug.cgi?id=779986
This commit is contained in:
parent
b4df747464
commit
ada21c975f
@ -528,6 +528,7 @@ const PadOsd = new Lang.Class({
|
|||||||
|
|
||||||
_init: function (padDevice, settings, imagePath, editionMode, monitorIndex) {
|
_init: function (padDevice, settings, imagePath, editionMode, monitorIndex) {
|
||||||
this.padDevice = padDevice;
|
this.padDevice = padDevice;
|
||||||
|
this._groupPads = [ padDevice ];
|
||||||
this._settings = settings;
|
this._settings = settings;
|
||||||
this._imagePath = imagePath;
|
this._imagePath = imagePath;
|
||||||
this._editionMode = editionMode;
|
this._editionMode = editionMode;
|
||||||
@ -540,6 +541,13 @@ const PadOsd = new Lang.Class({
|
|||||||
this.destroy();
|
this.destroy();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
deviceManager.list_devices().forEach(Lang.bind(this, function(device) {
|
||||||
|
if (device != this.padDevice &&
|
||||||
|
device.get_device_type() == Clutter.InputDeviceType.PAD_DEVICE &&
|
||||||
|
this.padDevice.is_grouped(device))
|
||||||
|
this._groupPads.push(device);
|
||||||
|
}));
|
||||||
|
|
||||||
this.actor = new St.BoxLayout({ style_class: 'pad-osd-window',
|
this.actor = new St.BoxLayout({ style_class: 'pad-osd-window',
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
y_expand: true,
|
y_expand: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user