[gnome-shell/gbsneto/random-cleanups-pt1: 4/5] viewSelector: Make sure it's invisible when overview is hidden
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/random-cleanups-pt1: 4/5] viewSelector: Make sure it's invisible when overview is hidden
- Date: Tue, 2 Jun 2020 17:23:07 +0000 (UTC)
commit 5da2741760803c4746b92337aa1581b2eca3ba00
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Jun 2 14:21:02 2020 -0300
viewSelector: Make sure it's invisible when overview is hidden
Instead of overriding the hide() method, use the unmap vfunc to
reset, and make sure its visibility is correct.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1295
js/ui/viewSelector.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index 265378537f..43f4b1ecb2 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -132,6 +132,7 @@ var ViewSelector = GObject.registerClass({
super._init({
name: 'viewSelector',
x_expand: true,
+ visible: false,
});
this._showAppsButton = showAppsButton;
@@ -272,6 +273,7 @@ var ViewSelector = GObject.registerClass({
}
animateToOverview() {
+ this.show();
this.reset();
this._workspacesDisplay.animateToOverview(this._showAppsButton.checked);
this._activePage = null;
@@ -301,7 +303,8 @@ var ViewSelector = GObject.registerClass({
this._workspacesDisplay.setWorkspacesFullGeometry(geom);
}
- hide() {
+ vfunc_unmap() {
+ super.vfunc_unmap();
this.reset();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]