[gnome-shell] workspace: Set WindowPreview offscreen redirect inside constructor



commit 93a542d52c2e10c614c0bea44035884d56c438e8
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Thu Jun 4 17:15:45 2020 +0200

    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

 js/ui/workspace.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index c7d9d81666..7370a137a9 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -214,6 +214,7 @@ var WindowPreview = GObject.registerClass({
             reactive: true,
             can_focus: true,
             accessible_role: Atk.Role.PUSH_BUTTON,
+            offscreen_redirect: Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY,
         });
 
         this._windowContainer = new Clutter.Actor();
@@ -224,8 +225,6 @@ var WindowPreview = GObject.registerClass({
         this._windowContainer.layout_manager = new WindowPreviewLayout();
         this.add_child(this._windowContainer);
 
-        this.set_offscreen_redirect(Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY);
-
         this._addWindow(realWindow.meta_window);
 
         this._delegate = this;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]