mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 09:48:50 +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
|
// scroll to delegate index, and activate it
|
||||||
function activateWindow(index, window) {
|
function activateWindow(index, window) {
|
||||||
KWinComponents.Workspace.activeClient = window;
|
KWinComponents.Workspace.activeWindow = window;
|
||||||
taskSwitcherState.openApp(index, window);
|
taskSwitcherState.openApp(index, window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ QtObject {
|
||||||
function openApp(index, window) {
|
function openApp(index, window) {
|
||||||
animateGoToTaskIndex(index, Kirigami.Units.shortDuration);
|
animateGoToTaskIndex(index, Kirigami.Units.shortDuration);
|
||||||
openAppAnim.restart();
|
openAppAnim.restart();
|
||||||
KWinComponents.Workspace.activeClient = window
|
KWinComponents.Workspace.activeWindow = window
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the xPosition where the task will be centered on the screen
|
// get the xPosition where the task will be centered on the screen
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue