[gnome-shell/T27795: 74/138] overview: Don't hide the overview on startup when re-laying it out
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/T27795: 74/138] overview: Don't hide the overview on startup when re-laying it out
- Date: Tue, 1 Oct 2019 23:35:33 +0000 (UTC)
commit ce2f0727c6e30bce8efd7baca834fcf4303f8db9
Author: Mario Sanchez Prada <mario endlessm com>
Date: Fri Jun 30 23:42:32 2017 +0100
overview: Don't hide the overview on startup when re-laying it out
In a similar fashion to what we did in EOS 3.1, split the relayout()
method in two, so that we can force a relayout on initialization of
the overview without forcing a call to hide(), which we don't want
to do since our shell starts right in overview mode.
https://phabricator.endlessm.com/T17789
js/ui/overview.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index 7c11678946..559aa8ee79 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -244,7 +244,7 @@ var Overview = class {
this.viewSelector.connect('page-changed', this._onPageChanged.bind(this));
Main.layoutManager.connect('startup-prepared', this._onStartupPrepared.bind(this));
Main.layoutManager.connect('monitors-changed', this._relayout.bind(this));
- this._relayout();
+ this._relayoutNoHide();
}
addSearchProvider(provider) {
@@ -378,6 +378,10 @@ var Overview = class {
// when it is next shown.
this.hide();
+ this._relayoutNoHide();
+ }
+
+ _relayoutNoHide() {
this._coverPane.set_position(0, 0);
this._coverPane.set_size(global.screen_width, global.screen_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]