mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +00:00
port stackbefore/stackAfter out of plasmoid.nativeInterface
This commit is contained in:
parent
840d50047a
commit
77291587bd
1 changed files with 5 additions and 5 deletions
|
|
@ -94,9 +94,9 @@ Item {
|
||||||
var pos = container.flow.mapFromItem(item, dragCenterX, dragCenterY);
|
var pos = container.flow.mapFromItem(item, dragCenterX, dragCenterY);
|
||||||
|
|
||||||
if (pos.x < child.x + child.width / 2) {
|
if (pos.x < child.x + child.width / 2) {
|
||||||
plasmoid.nativeInterface.stackBefore(spacer, child);
|
HomeScreenComponents.HomeScreenUtils.stackBefore(spacer, child);
|
||||||
} else {
|
} else {
|
||||||
plasmoid.nativeInterface.stackAfter(spacer, child);
|
HomeScreenComponents.HomeScreenUtils.stackAfter(spacer, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal.putItemInDragSpace(item);
|
internal.putItemInDragSpace(item);
|
||||||
|
|
@ -130,9 +130,9 @@ Item {
|
||||||
spacer.parent = container.flow
|
spacer.parent = container.flow
|
||||||
|
|
||||||
if (pos.x < child.x + child.width / 2) {
|
if (pos.x < child.x + child.width / 2) {
|
||||||
plasmoid.nativeInterface.stackBefore(spacer, child);
|
HomeScreenComponents.HomeScreenUtils.stackBefore(spacer, child);
|
||||||
} else {
|
} else {
|
||||||
plasmoid.nativeInterface.stackAfter(spacer, child);
|
HomeScreenComponents.HomeScreenUtils.stackAfter(spacer, child);
|
||||||
}
|
}
|
||||||
|
|
||||||
spacer.visible = true;
|
spacer.visible = true;
|
||||||
|
|
@ -297,7 +297,7 @@ Item {
|
||||||
var child = nearestChild(item, dragCenterX, dragCenterY, container);
|
var child = nearestChild(item, dragCenterX, dragCenterY, container);
|
||||||
|
|
||||||
putInContainerLayout(item, container);
|
putInContainerLayout(item, container);
|
||||||
plasmoid.nativeInterface.stackBefore(item, spacer);
|
HomeScreenComponents.HomeScreenUtils.stackBefore(item, spacer);
|
||||||
spacer.visible = false;
|
spacer.visible = false;
|
||||||
spacer.parent = root;
|
spacer.parent = root;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue