shellDBus: don't consider a zero-index monitor invalid

Currently, shellDBus only uses the passed in monitor index if it's
strictly > 0. A zero-index monitor is a valid one though, so don't
restrict this to strictly positive indices.

https://bugzilla.gnome.org/show_bug.cgi?id=740074
This commit is contained in:
Cosimo Cecchi 2014-11-13 10:01:56 -08:00
parent facaea6850
commit 45e42d7b9e

View File

@ -134,7 +134,7 @@ const GnomeShell = new Lang.Class({
params[param] = params[param].deep_unpack(); params[param] = params[param].deep_unpack();
let monitorIndex = -1; let monitorIndex = -1;
if (params['monitor']) if (params['monitor'] >= 0)
monitorIndex = params['monitor']; monitorIndex = params['monitor'];
let icon = null; let icon = null;