taskswitcher: Port to kwin api changes

This commit is contained in:
Devin Lin 2023-09-27 20:04:14 -07:00
parent d4caa510c7
commit 9776714341
2 changed files with 2 additions and 2 deletions

View file

@ -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);
}

View file

@ -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