|
|
|
@ -43,11 +43,11 @@ FocusScope {
|
|
|
|
|
effect.swapDesktops(drag.source.desktop.x11DesktopNumber, desktop.x11DesktopNumber);
|
|
|
|
|
} else {
|
|
|
|
|
// dragging a KWin::Window
|
|
|
|
|
if (drag.source.desktop === desktopView.desktop.x11DesktopNumber) {
|
|
|
|
|
if (drag.source.desktops.length === 0 || drag.source.desktops.indexOf(desktopView.desktop) !== -1) {
|
|
|
|
|
drop.action = Qt.IgnoreAction;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
drag.source.desktop = desktopView.desktop.x11DesktopNumber;
|
|
|
|
|
drag.source.desktops = [desktopView.desktop];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -61,7 +61,7 @@ FocusScope {
|
|
|
|
|
if (!desktopView.contains(desktopView.mapFromItem(null, pos.x, pos.y))) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
item.client.desktop = desktopView.desktop.x11DesktopNumber;
|
|
|
|
|
item.client.desktops = [desktopView.desktop];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Repeater {
|
|
|
|
@ -137,10 +137,10 @@ FocusScope {
|
|
|
|
|
if (eventPoint.event.button === Qt.MiddleButton) {
|
|
|
|
|
window.closeWindow();
|
|
|
|
|
} else if (eventPoint.event.button === Qt.RightButton) {
|
|
|
|
|
if (window.desktop > -1) {
|
|
|
|
|
window.desktop = -1;
|
|
|
|
|
if (window.desktops.length > 0) {
|
|
|
|
|
window.desktops = [];
|
|
|
|
|
} else {
|
|
|
|
|
window.desktop = desktopView.desktop.x11DesktopNumber;
|
|
|
|
|
window.desktops = [desktopView.desktop];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|