[gnome-shell-extensions] window-list: Adjust to overview changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] window-list: Adjust to overview changes
- Date: Wed, 21 Oct 2020 01:05:55 +0000 (UTC)
commit 52abf740884a68f7b5f87a6972be1fba5d00168a
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Oct 21 02:42:55 2020 +0200
window-list: 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/window-list/workspaceIndicator.js | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/extensions/window-list/workspaceIndicator.js b/extensions/window-list/workspaceIndicator.js
index ca3dc61..99604d8 100644
--- a/extensions/window-list/workspaceIndicator.js
+++ b/extensions/window-list/workspaceIndicator.js
@@ -52,8 +52,8 @@ class WindowPreview extends St.Button {
}
// needed for DND
- get realWindow() {
- return this._window.get_compositor_private();
+ get metaWindow() {
+ return this._window;
}
_onDestroy() {
@@ -134,16 +134,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]