Commit e00878ab authored by Florian Müllner's avatar Florian Müllner Committed by Carlos Garnacho

shellDBus: Don't assume devices have a node

Clutter.InputDevice.get_device_node() may return null. Handle that
case when building the 'AcceleratorActivated' vardict parameter.

parent 3b5675b7
Pipeline #121667 passed with stages
in 3 minutes and 52 seconds
......@@ -151,9 +151,13 @@ var GnomeShell = class {
let connection = this._dbusImpl.get_connection();
let info = this._dbusImpl.get_info();
let params = { 'device-id':'u', device.get_device_id()),
'device-node':'s', device.get_device_node()),
'timestamp':'u', timestamp),
'action-mode':'u', Main.actionMode) };
let deviceNode = device.get_device_node();
if (deviceNode)
params['device-node'] ='s', deviceNode);
info ? : null,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment