mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 06:33:08 +00:00
reintroduce maximizing task on activating it in switcher
only maximize when not in docked mode to not break windowed workflow when docked. BUG: 492077
This commit is contained in:
parent
b6f2740ff4
commit
3353d45249
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ import org.kde.kirigami 2.20 as Kirigami
|
||||||
import org.kde.plasma.core as PlasmaCore
|
import org.kde.plasma.core as PlasmaCore
|
||||||
import org.kde.plasma.components 3.0 as PlasmaComponents
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
||||||
import org.kde.kwin 3.0 as KWinComponents
|
import org.kde.kwin 3.0 as KWinComponents
|
||||||
|
import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: delegate
|
id: delegate
|
||||||
|
|
@ -44,6 +45,9 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
function activateApp() {
|
function activateApp() {
|
||||||
|
if (!ShellSettings.Settings.convergenceModeEnabled) {
|
||||||
|
delegate.window.setMaximize(true, true);
|
||||||
|
}
|
||||||
taskSwitcherHelpers.openApp(model.index, delegate.window);
|
taskSwitcherHelpers.openApp(model.index, delegate.window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue