mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
make reorder work
This commit is contained in:
parent
f3b1522bf6
commit
3ce063b5fa
2 changed files with 7 additions and 2 deletions
|
|
@ -49,7 +49,6 @@ ContainmentLayoutManager.ItemContainer {
|
||||||
onDragActiveChanged: {
|
onDragActiveChanged: {
|
||||||
if (dragActive) {
|
if (dragActive) {
|
||||||
launcherDragManager.showSpacer(delegate, 0, 0);
|
launcherDragManager.showSpacer(delegate, 0, 0);
|
||||||
print("AAAH, BENGALAAAAH")
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -90,12 +90,13 @@ QtObject {
|
||||||
raiseContainer(container);
|
raiseContainer(container);
|
||||||
|
|
||||||
var child = container.flow.childAt(item.x + dragCenterX, item.y + dragCenterX);
|
var child = container.flow.childAt(item.x + dragCenterX, item.y + dragCenterX);
|
||||||
|
|
||||||
if (!child) {
|
if (!child) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
changeContainer(item, container);
|
|
||||||
if (container == appletsLayout) {
|
if (container == appletsLayout) {
|
||||||
|
changeContainer(item, container);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -107,6 +108,11 @@ QtObject {
|
||||||
} else {
|
} else {
|
||||||
plasmoid.nativeInterface.orderItems(child, spacer);
|
plasmoid.nativeInterface.orderItems(child, spacer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changeContainer(item, container);
|
||||||
|
|
||||||
|
print(spacer.parent+" "+child.parent)
|
||||||
|
|
||||||
spacer.visible = true;
|
spacer.visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue