effects/desktopgrid: Close windows on middle click
This makes it so that the windowview/overview/desktopgrid effects all use the middle mouse button to close windows. The previous behavior of pinning window is now assigned to the right mouse button. BUG: 456144
This commit is contained in:
parent
0c453739b1
commit
524e65813b
1 changed files with 8 additions and 7 deletions
|
@ -121,15 +121,16 @@ DropArea {
|
||||||
}
|
}
|
||||||
onActivated: effect.deactivate(effect.animationDuration);
|
onActivated: effect.deactivate(effect.animationDuration);
|
||||||
onWindowClicked: {
|
onWindowClicked: {
|
||||||
if (eventPoint.event.button !== Qt.MiddleButton) {
|
if (eventPoint.event.button === Qt.MiddleButton) {
|
||||||
return;
|
window.closeWindow();
|
||||||
}
|
} else if (eventPoint.event.button === Qt.RightButton) {
|
||||||
if (window.desktop > -1) {
|
if (window.desktop > -1) {
|
||||||
window.desktop = -1;
|
window.desktop = -1;
|
||||||
} else {
|
} else {
|
||||||
window.desktop = desktopView.desktop.x11DesktopNumber;
|
window.desktop = desktopView.desktop.x11DesktopNumber;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Behavior on x {
|
Behavior on x {
|
||||||
enabled: !dragHandler.active
|
enabled: !dragHandler.active
|
||||||
XAnimator {
|
XAnimator {
|
||||||
|
|
Loading…
Reference in a new issue