effects/Overview: Move delegate handlers to the bottom close to each other

This commit is contained in:
ivan tkachenko 2022-09-13 12:19:02 +03:00
parent 329731be2d
commit 4a6879e6ee
No known key found for this signature in database
GPG key ID: AF72731B7C654CB3

View file

@ -243,12 +243,6 @@ FocusScope {
animationDuration: effect.animationDuration
animationEnabled: container.animationEnabled
organized: container.organized
onWindowClicked: {
if (eventPoint.event.button !== Qt.MiddleButton) {
return;
}
window.closeWindow();
}
Keys.priority: Keys.AfterItem
Keys.forwardTo: searchResults
model: KWinComponents.ClientFilterModel {
@ -262,7 +256,6 @@ FocusScope {
~KWinComponents.ClientFilterModel.Desktop &
~KWinComponents.ClientFilterModel.Notification
}
onActivated: effect.deactivate();
delegate: WindowHeapDelegate {
windowHeap: heap
@ -282,6 +275,12 @@ FocusScope {
opacity: 1 - downGestureProgress
onDownGestureTriggered: client.closeWindow()
}
onActivated: effect.deactivate();
onWindowClicked: {
if (eventPoint.event.button === Qt.MiddleButton) {
window.closeWindow();
}
}
}
Milou.ResultsView {