[gnome-shell/eos3.8: 61/255] overview: Don't hide the overview on startup when re-laying it out
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/eos3.8: 61/255] overview: Don't hide the overview on startup when re-laying it out
- Date: Wed, 10 Jun 2020 19:03:04 +0000 (UTC)
commit f59ddc0bd78fb9c0a4da297632fe2d0b4b0cbfce
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 370f91b6a8..5eb3c5dd62 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -274,7 +274,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) {
@@ -408,6 +408,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]