mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-26 06:14:45 +00:00
same speed animation with kwin minimize
This commit is contained in:
parent
b1f65036b0
commit
4b39250ffa
2 changed files with 5 additions and 3 deletions
|
|
@ -39,9 +39,9 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function syncDelegateGeometry() {
|
function syncDelegateGeometry() {
|
||||||
let pos = delegate.mapToItem(tasksView, 0, 0);
|
let pos = pipeWireItem.mapToItem(tasksView, 0, 0);
|
||||||
if (window.visible) {
|
if (window.visible) {
|
||||||
tasksModel.requestPublishDelegateGeometry(tasksModel.index(model.index, 0), Qt.rect(pos.x, pos.y, delegate.width, delegate.height), delegate);
|
tasksModel.requestPublishDelegateGeometry(tasksModel.index(model.index, 0), Qt.rect(pos.x, pos.y, pipeWireItem.width, pipeWireItem.height), pipeWireItem);
|
||||||
} else {
|
} else {
|
||||||
// tasksModel.requestPublishDelegateGeometry(tasksModel.index(model.index, 0), Qt.rect(pos.x, pos.y, delegate.width, delegate.height), dummyWindowTask);
|
// tasksModel.requestPublishDelegateGeometry(tasksModel.index(model.index, 0), Qt.rect(pos.x, pos.y, delegate.width, delegate.height), dummyWindowTask);
|
||||||
}
|
}
|
||||||
|
|
@ -127,6 +127,7 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
TaskManager.PipeWireSourceItem {
|
TaskManager.PipeWireSourceItem {
|
||||||
|
id: pipeWireItem
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
//visible: waylandItem.nodeId > 0
|
//visible: waylandItem.nodeId > 0
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,8 @@ NanoShell.FullScreenOverlay {
|
||||||
target: activateAnim.delegate
|
target: activateAnim.delegate
|
||||||
from: 1
|
from: 1
|
||||||
to: 2
|
to: 2
|
||||||
duration: units.longDuration
|
// To try tosync up with kwin animation
|
||||||
|
duration: units.longDuration * 0.85
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.InOutQuad
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue