mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 17:24:48 +00:00
Fix activate
This commit is contained in:
parent
fc818bcf7f
commit
bb3b6959ac
1 changed files with 2 additions and 4 deletions
|
|
@ -24,7 +24,7 @@ NanoShell.FullScreenOverlay {
|
||||||
required property real taskPanelHeight // height of task panel, provided by main.qml
|
required property real taskPanelHeight // height of task panel, provided by main.qml
|
||||||
|
|
||||||
property int tasksCount: window.model.count
|
property int tasksCount: window.model.count
|
||||||
property int currentTaskIndex: tasksView.currentIndexInView // Math.round(tasksView.contentX / (tasksView.width + tasksView.spacing))
|
property int currentTaskIndex: Math.round(tasksView.contentX / (tasksView.width + tasksView.spacing))
|
||||||
property TaskManager.TasksModel model
|
property TaskManager.TasksModel model
|
||||||
|
|
||||||
// properties controlled from main.qml MouseArea (swipe to open gesture)
|
// properties controlled from main.qml MouseArea (swipe to open gesture)
|
||||||
|
|
@ -210,8 +210,6 @@ NanoShell.FullScreenOverlay {
|
||||||
NumberAnimation { properties: "x,y"; duration: PlasmaCore.Units.longDuration; easing.type: Easing.InOutQuad }
|
NumberAnimation { properties: "x,y"; duration: PlasmaCore.Units.longDuration; easing.type: Easing.InOutQuad }
|
||||||
}
|
}
|
||||||
|
|
||||||
property real currentIndexInView: indexAt(contentX, contentY)
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
z: -1
|
z: -1
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
@ -233,7 +231,7 @@ NanoShell.FullScreenOverlay {
|
||||||
delegate: Task {
|
delegate: Task {
|
||||||
id: task
|
id: task
|
||||||
property int curIndex: model.index
|
property int curIndex: model.index
|
||||||
z: curIndex === tasksView.currentIndexInView ? 1 : 0
|
z: window.currentTaskIndex === curIndex ? 1 : 0
|
||||||
width: tasksView.width
|
width: tasksView.width
|
||||||
height: tasksView.height
|
height: tasksView.height
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue