mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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() {
|
||||
let pos = delegate.mapToItem(tasksView, 0, 0);
|
||||
let pos = pipeWireItem.mapToItem(tasksView, 0, 0);
|
||||
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 {
|
||||
// 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 {
|
||||
id: pipeWireItem
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
//visible: waylandItem.nodeId > 0
|
||||
|
|
|
|||
|
|
@ -173,7 +173,8 @@ NanoShell.FullScreenOverlay {
|
|||
target: activateAnim.delegate
|
||||
from: 1
|
||||
to: 2
|
||||
duration: units.longDuration
|
||||
// To try tosync up with kwin animation
|
||||
duration: units.longDuration * 0.85
|
||||
easing.type: Easing.InOutQuad
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue