[gnome-shell] workspace: Stop exporting window actor in the WindowPreview
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspace: Stop exporting window actor in the WindowPreview
- Date: Tue, 16 Jun 2020 12:44:07 +0000 (UTC)
commit 8357739ef8ce64ff6c864ac63e4fb259b2c49a75
Author: Jonas Dreßler <verdre v0yd nl>
Date: Mon Jun 8 10:01:27 2020 +0200
workspace: Stop exporting window actor in the WindowPreview
Having a public property exporting the MetaWindow is enough to get the
window actor, too, so remove the public realWindow property and while at
it, rename that property to _windowActor, too.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1307
js/ui/workspace.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index 354a2608f9..6934148128 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -217,7 +217,7 @@ var WindowPreview = GObject.registerClass({
_init(metaWindow, workspace) {
this.metaWindow = metaWindow;
this.metaWindow._delegate = this;
- this.realWindow = metaWindow.get_compositor_private();
+ this._windowActor = metaWindow.get_compositor_private();
this._workspace = workspace;
super._init({
@@ -235,7 +235,7 @@ var WindowPreview = GObject.registerClass({
this._windowContainer.layout_manager = new WindowPreviewLayout();
this.add_child(this._windowContainer);
- this._addWindow(realWindow.meta_window);
+ this._addWindow(metaWindow);
this._delegate = this;
@@ -250,7 +250,7 @@ var WindowPreview = GObject.registerClass({
});
this._windowDestroyId =
- this.realWindow.connect('destroy', () => this.destroy());
+ this._windowActor.connect('destroy', () => this.destroy());
this._updateAttachedDialogs();
this.x = this.boundingBox.x;
@@ -612,7 +612,7 @@ var WindowPreview = GObject.registerClass({
}
_onDestroy() {
- this.realWindow.disconnect(this._windowDestroyId);
+ this._windowActor.disconnect(this._windowDestroyId);
this.metaWindow._delegate = null;
this._delegate = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]