mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 22:33: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: {
|
||||
if (dragActive) {
|
||||
launcherDragManager.showSpacer(delegate, 0, 0);
|
||||
print("AAAH, BENGALAAAAH")
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -90,12 +90,13 @@ QtObject {
|
|||
raiseContainer(container);
|
||||
|
||||
var child = container.flow.childAt(item.x + dragCenterX, item.y + dragCenterX);
|
||||
|
||||
if (!child) {
|
||||
return;
|
||||
}
|
||||
|
||||
changeContainer(item, container);
|
||||
if (container == appletsLayout) {
|
||||
changeContainer(item, container);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -107,6 +108,11 @@ QtObject {
|
|||
} else {
|
||||
plasmoid.nativeInterface.orderItems(child, spacer);
|
||||
}
|
||||
|
||||
changeContainer(item, container);
|
||||
|
||||
print(spacer.parent+" "+child.parent)
|
||||
|
||||
spacer.visible = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue