mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
taskswitcher: Port to kwin api changes
This commit is contained in:
parent
d4caa510c7
commit
9776714341
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue