[gnome-shell] workspacesView: Initialize the adjustment's upper bound
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspacesView: Initialize the adjustment's upper bound
- Date: Mon, 27 Jun 2016 12:44:10 +0000 (UTC)
commit 500ea13155b8690b5958efe582c58ca15a733fde
Author: Rui Matos <tiagomatos gmail com>
Date: Sun Jun 26 19:09:41 2016 +0200
workspacesView: Initialize the adjustment's upper bound
Initializing the upper bound to zero means that on panning we'd start
scrolling from the first workspace even if the current workspace when
entering the overview was different since StAdjustment clamps the
value to be inside bounds.
https://bugzilla.gnome.org/show_bug.cgi?id=766883
js/ui/workspacesView.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/workspacesView.js b/js/ui/workspacesView.js
index e0c9249..6c66f3e 100644
--- a/js/ui/workspacesView.js
+++ b/js/ui/workspacesView.js
@@ -103,7 +103,7 @@ const WorkspacesView = new Lang.Class({
page_increment: 1,
page_size: 1,
step_increment: 0,
- upper: 0 });
+ upper: global.screen.n_workspaces });
this.scrollAdjustment.connect('notify::value',
Lang.bind(this, this._onScroll));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]