[gnome-shell-extensions] workspace-indicator: Adjust to overview changes



commit 623bc6dbf318633a7b2ad0d86763e9721c578087
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Oct 21 00:11:06 2020 +0200

    workspace-indicator: Adjust to overview changes
    
    Window DND in the overview is now based on the metaWindow,
    not the window actor (misnamed as "real window").
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/133

 extensions/workspace-indicator/extension.js | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/extensions/workspace-indicator/extension.js b/extensions/workspace-indicator/extension.js
index 6d13acf..e48ff1c 100644
--- a/extensions/workspace-indicator/extension.js
+++ b/extensions/workspace-indicator/extension.js
@@ -58,8 +58,8 @@ class WindowPreview extends St.Button {
     }
 
     // needed for DND
-    get realWindow() {
-        return this._window.get_compositor_private();
+    get metaWindow() {
+        return this._window;
     }
 
     _onDestroy() {
@@ -140,16 +140,15 @@ class WorkspaceThumbnail extends St.Button {
     }
 
     acceptDrop(source) {
-        if (!source.realWindow)
+        if (!source.metaWindow)
             return false;
 
-        let window = source.realWindow.get_meta_window();
-        this._moveWindow(window);
+        this._moveWindow(source.metaWindow);
         return true;
     }
 
     handleDragOver(source) {
-        if (source.realWindow)
+        if (source.metaWindow)
             return DND.DragMotionResult.MOVE_DROP;
         else
             return DND.DragMotionResult.CONTINUE;


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