restore old window if list just dismissed

This commit is contained in:
Marco Martin 2016-06-28 14:50:59 +02:00
parent f79d82fe13
commit 87323bb71a
2 changed files with 1 additions and 1 deletions

View file

@ -99,6 +99,7 @@ FullScreenPanel {
script: {
if (tasksView.contentY <= -tasksView.headerItem.height || tasksView.contentY >= tasksView.contentHeight - tasksView.headerItem.height) {
window.visible = false;
setSingleActiveWindow(currentTaskIndex);
}
}
}

View file

@ -104,7 +104,6 @@ PlasmaCore.ColorScope {
enabled: taskSwitcher.tasksCount > 0;
iconSource: "window-list"
onClicked: {
taskSwitcher.currentTaskIndex = -1;
taskSwitcher.visible ? taskSwitcher.hide() : taskSwitcher.show();
}
onPressed: mainMouseArea.managePressed(mouse);