mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
taskswitcher: disable input handlers while in gesture
This commit is contained in:
parent
863485075c
commit
26aaa808b0
2 changed files with 6 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ Item {
|
||||||
id: control
|
id: control
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: parent.height
|
height: parent.height
|
||||||
|
enabled: !taskSwitcher.taskSwitcherState.currentlyBeingOpened
|
||||||
|
|
||||||
// set cursor shape here, since taphandler seems to not be able to do it
|
// set cursor shape here, since taphandler seems to not be able to do it
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
|
@ -81,6 +82,8 @@ Item {
|
||||||
id: dragHandler
|
id: dragHandler
|
||||||
target: parent
|
target: parent
|
||||||
|
|
||||||
|
enabled: !taskSwitcher.taskSwitcherState.currentlyBeingOpened
|
||||||
|
|
||||||
yAxis.enabled: true
|
yAxis.enabled: true
|
||||||
xAxis.enabled: false
|
xAxis.enabled: false
|
||||||
yAxis.maximum: 0
|
yAxis.maximum: 0
|
||||||
|
|
@ -238,6 +241,7 @@ Item {
|
||||||
|
|
||||||
TapHandler {
|
TapHandler {
|
||||||
id: tapHandler
|
id: tapHandler
|
||||||
|
enabled: !taskSwitcher.taskSwitcherState.currentlyBeingOpened
|
||||||
onTapped: delegate.activateApp()
|
onTapped: delegate.activateApp()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@ Item {
|
||||||
|
|
||||||
// taphandler activates even if delegate touched
|
// taphandler activates even if delegate touched
|
||||||
TapHandler {
|
TapHandler {
|
||||||
|
enabled: !taskSwitcherState.currentlyBeingOpened
|
||||||
|
|
||||||
onTapped: {
|
onTapped: {
|
||||||
// if tapped on the background, then hide
|
// if tapped on the background, then hide
|
||||||
if (root.childAt(eventPoint.position.x, eventPoint.position.y) === null) {
|
if (root.childAt(eventPoint.position.x, eventPoint.position.y) === null) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue