From 97767143419c69167e2c6f009f28e9230f8d5917 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 27 Sep 2023 20:04:14 -0700 Subject: [PATCH] taskswitcher: Port to kwin api changes --- kwin/mobiletaskswitcher/qml/TaskSwitcher.qml | 2 +- kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml b/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml index 5b21f354..5208782a 100644 --- a/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml +++ b/kwin/mobiletaskswitcher/qml/TaskSwitcher.qml @@ -99,7 +99,7 @@ FocusScope { // scroll to delegate index, and activate it function activateWindow(index, window) { - KWinComponents.Workspace.activeClient = window; + KWinComponents.Workspace.activeWindow = window; taskSwitcherState.openApp(index, window); } diff --git a/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml b/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml index 1b0b65e5..8d4fb6cc 100644 --- a/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml +++ b/kwin/mobiletaskswitcher/qml/TaskSwitcherState.qml @@ -138,7 +138,7 @@ QtObject { function openApp(index, window) { animateGoToTaskIndex(index, Kirigami.Units.shortDuration); openAppAnim.restart(); - KWinComponents.Workspace.activeClient = window + KWinComponents.Workspace.activeWindow = window } // get the xPosition where the task will be centered on the screen