plugins/overview: Fix MMB and RMB
Both MMB and RMB are broken because acceptedPointerTypes doesn't accept PointerDevice.GenericPointer. RMB is broken because there's no "desktopView" object. BUG: 475681
This commit is contained in:
parent
765ffb7ff4
commit
255283b74a
1 changed files with 2 additions and 2 deletions
|
@ -596,7 +596,7 @@ FocusScope {
|
||||||
opacity: 1 - downGestureProgress
|
opacity: 1 - downGestureProgress
|
||||||
onDownGestureTriggered: window.closeWindow()
|
onDownGestureTriggered: window.closeWindow()
|
||||||
TapHandler {
|
TapHandler {
|
||||||
acceptedPointerTypes: PointerDevice.GenericPointer | PointerDevice.Pen
|
acceptedPointerTypes: PointerDevice.Generic | PointerDevice.Pen
|
||||||
acceptedButtons: Qt.MiddleButton | Qt.RightButton
|
acceptedButtons: Qt.MiddleButton | Qt.RightButton
|
||||||
onTapped: (eventPoint, button) => {
|
onTapped: (eventPoint, button) => {
|
||||||
if (button === Qt.MiddleButton) {
|
if (button === Qt.MiddleButton) {
|
||||||
|
@ -605,7 +605,7 @@ FocusScope {
|
||||||
if (window.desktops.length > 0) {
|
if (window.desktops.length > 0) {
|
||||||
window.desktops = [];
|
window.desktops = [];
|
||||||
} else {
|
} else {
|
||||||
window.desktops = [desktopView.desktop];
|
window.desktops = [mainBackground.desktop];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue