mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
taskswitcher: Fix tapping outside of delegate to close
This commit is contained in:
parent
1c81cd34b4
commit
2f27eb848d
2 changed files with 7 additions and 1 deletions
|
|
@ -23,6 +23,12 @@ Item {
|
|||
|
||||
// taphandler activates even if delegate touched
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
// if tapped on the background, then hide
|
||||
if (root.childAt(eventPoint.position.x, eventPoint.position.y) === null) {
|
||||
taskSwitcher.hide();
|
||||
}
|
||||
}
|
||||
onPressedChanged: {
|
||||
if (pressed) {
|
||||
// ensure animations aren't running when finger is pressed
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ Item {
|
|||
}
|
||||
|
||||
// TODO close task switcher when an app opens while it is open, otherwise the navbar becomes glitched
|
||||
// TODO click outside of delegate to close
|
||||
// TODO filter shell windows
|
||||
|
||||
//BEGIN functions
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue