mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
restore old window if list just dismissed
This commit is contained in:
parent
f79d82fe13
commit
87323bb71a
2 changed files with 1 additions and 1 deletions
|
|
@ -99,6 +99,7 @@ FullScreenPanel {
|
||||||
script: {
|
script: {
|
||||||
if (tasksView.contentY <= -tasksView.headerItem.height || tasksView.contentY >= tasksView.contentHeight - tasksView.headerItem.height) {
|
if (tasksView.contentY <= -tasksView.headerItem.height || tasksView.contentY >= tasksView.contentHeight - tasksView.headerItem.height) {
|
||||||
window.visible = false;
|
window.visible = false;
|
||||||
|
setSingleActiveWindow(currentTaskIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,6 @@ PlasmaCore.ColorScope {
|
||||||
enabled: taskSwitcher.tasksCount > 0;
|
enabled: taskSwitcher.tasksCount > 0;
|
||||||
iconSource: "window-list"
|
iconSource: "window-list"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
taskSwitcher.currentTaskIndex = -1;
|
|
||||||
taskSwitcher.visible ? taskSwitcher.hide() : taskSwitcher.show();
|
taskSwitcher.visible ? taskSwitcher.hide() : taskSwitcher.show();
|
||||||
}
|
}
|
||||||
onPressed: mainMouseArea.managePressed(mouse);
|
onPressed: mainMouseArea.managePressed(mouse);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue