diff --git a/src/plugins/overview/qml/main.qml b/src/plugins/overview/qml/main.qml index 94241712dd..3e96601c93 100644 --- a/src/plugins/overview/qml/main.qml +++ b/src/plugins/overview/qml/main.qml @@ -409,6 +409,7 @@ FocusScope { property Item currentHeap property Item currentBackgroundItem + // Later we use its type to check whether the user is dragging a desktop or a window Item { id: mainBackground @@ -540,7 +541,7 @@ FocusScope { } onDropped: (drop) => { drop.accepted = true; - if (drag.source instanceof Kirigami.ShadowedRectangle) { + if (drag.source instanceof Item) { // dragging a desktop as a whole if (drag.source === mainBackground) { drop.action = Qt.IgnoreAction;