Verified Commit 074fed31 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

effects/desktopgrid: Fix dragging and swapping desktops on a grid

Amends 00ba4aed.
parent f1a45b65
Pipeline #209601 passed with stage
in 30 minutes and 53 seconds
......@@ -31,12 +31,14 @@ FocusScope {
drag.accepted = true;
}
onDropped: {
if (drag.source instanceof DropArea) {
if (drag.source instanceof DesktopView) {
// dragging a desktop as a whole
if (desktopView === drag.source) {
return;
}
effect.swapDesktops(drag.source.desktop.x11DesktopNumber, desktop.x11DesktopNumber);
} else {
// dragging a KWin::Window
drag.source.desktop = desktopView.desktop.x11DesktopNumber;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment