[gnome-shell/gnome-3-38] appDisplay: don't change grid page on adaptToSize
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-38] appDisplay: don't change grid page on adaptToSize
- Date: Wed, 2 Dec 2020 23:03:51 +0000 (UTC)
commit 69d656d88a73abd3652b4b8fedf32ad133bc1018
Author: Daniel García Moreno <danigm endlessos org>
Date: Thu Nov 12 10:38:17 2020 +0100
appDisplay: don't change grid page on adaptToSize
If the adapt to size occurs after the grid page has been changed the
page is set to zero. This patch just keep the current page with the same
value that it has before.
Fix https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3388
(cherry picked from commit 8eec7ae2d8a19ef267140bfb00cda974b55faddd)
js/ui/appDisplay.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 920fde3e95..06a5052b07 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -840,9 +840,9 @@ var BaseAppView = GObject.registerClass({
this._pageIndicators.nPages !== this._grid.nPages) {
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
this._adjustment.value = 0;
- this._grid.currentPage = 0;
+ this.goToPage(this._grid.currentPage);
this._pageIndicators.setNPages(this._grid.nPages);
- this._pageIndicators.setCurrentPosition(0);
+ this._pageIndicators.setCurrentPosition(this._grid.currentPage);
return GLib.SOURCE_REMOVE;
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]