From 435879c12176f855d95f22a3ef30b72234f9d6ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 21 Oct 2020 00:11:06 +0200 Subject: [PATCH] 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 12634e25..21080c10 100644 --- a/extensions/workspace-indicator/extension.js +++ b/extensions/workspace-indicator/extension.js @@ -46,8 +46,8 @@ class WindowPreview extends St.Button { } // needed for DND - get realWindow() { - return this._window.get_compositor_private(); + get metaWindow() { + return this._window; } _onDestroy() { @@ -141,16 +141,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;