From 45e42d7b9ef5420a859f272a819a01d5fd37486b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 13 Nov 2014 10:01:56 -0800 Subject: [PATCH] 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 --- js/ui/shellDBus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index a87ea4171..4ef03c149 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -134,7 +134,7 @@ const GnomeShell = new Lang.Class({ params[param] = params[param].deep_unpack(); let monitorIndex = -1; - if (params['monitor']) + if (params['monitor'] >= 0) monitorIndex = params['monitor']; let icon = null;