workspace: Set WindowPreview offscreen redirect inside constructor
This can also be moved to constructor, so do it. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1307
This commit is contained in:
parent
f4fcba74ff
commit
93a542d52c
@ -214,6 +214,7 @@ var WindowPreview = GObject.registerClass({
|
|||||||
reactive: true,
|
reactive: true,
|
||||||
can_focus: true,
|
can_focus: true,
|
||||||
accessible_role: Atk.Role.PUSH_BUTTON,
|
accessible_role: Atk.Role.PUSH_BUTTON,
|
||||||
|
offscreen_redirect: Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._windowContainer = new Clutter.Actor();
|
this._windowContainer = new Clutter.Actor();
|
||||||
@ -224,8 +225,6 @@ var WindowPreview = GObject.registerClass({
|
|||||||
this._windowContainer.layout_manager = new WindowPreviewLayout();
|
this._windowContainer.layout_manager = new WindowPreviewLayout();
|
||||||
this.add_child(this._windowContainer);
|
this.add_child(this._windowContainer);
|
||||||
|
|
||||||
this.set_offscreen_redirect(Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY);
|
|
||||||
|
|
||||||
this._addWindow(realWindow.meta_window);
|
this._addWindow(realWindow.meta_window);
|
||||||
|
|
||||||
this._delegate = this;
|
this._delegate = this;
|
||||||
|
Loading…
Reference in New Issue
Block a user