[gnome-shell] shellDBus: don't consider a zero-index monitor invalid
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shellDBus: don't consider a zero-index monitor invalid
- Date: Thu, 13 Nov 2014 18:15:37 +0000 (UTC)
commit 45e42d7b9ef5420a859f272a819a01d5fd37486b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Nov 13 10:01:56 2014 -0800
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index a87ea41..4ef03c1 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]