mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
This commit is contained in:
parent
d886d31bf0
commit
8eec7ae2d8
1 changed files with 2 additions and 2 deletions
|
|
@ -844,9 +844,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;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue