[gnome-shell/wip/sass] shellDBus: don't consider a zero-index monitor invalid
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/sass] shellDBus: don't consider a zero-index monitor invalid
- Date: Tue, 25 Nov 2014 14:23:30 +0000 (UTC)
commit 38481f0ee24199cc51f5a9b2bbad2325487c886d
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]