1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-27 14:50:21 +03:00

support plasma 5.22

--patch appeared first on openSUSE repos
This commit is contained in:
Fabian Vogt 2021-05-17 13:52:08 +03:00 committed by Michail Vourlakos
parent 56837c239b
commit 078db6daaf
2 changed files with 8 additions and 2 deletions

View File

@ -67,6 +67,7 @@ Item {
property bool plasma515: latteView ? latteView.plasma515 : Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,15,0)
property bool plasma518: latteView ? latteView.plasma518 : Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,18,0)
property bool plasmaGreaterThan522: Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,21,75)
property bool editMode: latteView ? latteView.editMode : plasmoid.userConfiguring
property bool inConfigureAppletsMode: latteView ? latteView.inConfigureAppletsMode : true
@ -823,7 +824,6 @@ Item {
id: backend
taskManagerItem: root
toolTipItem: toolTipDelegate
highlightWindows: root.highlightWindows
onAddLauncher: {
@ -840,6 +840,11 @@ Item {
if (Latte.WindowSystem.frameworksVersion >= 335104 || (groupDialog !== undefined)) {
groupDialog = groupDialogGhost;
}
//! In Plasma 5.22 toolTipItem was dropped
if (!root.plasmaGreaterThan522) {
toolTipItem = toolTipDelegate;
}
}
}

View File

@ -1016,7 +1016,8 @@ MouseArea{
}
else{
if (model.IsGroupParent) {
if (Latte.WindowSystem.compositingActive && backend.canPresentWindows()) {
var canPresentWindowsIsSupported = Latte.WindowSystem.compositingActive && (root.plasmaGreaterThan522 ? backend.canPresentWindows : backend.canPresentWindows());
if (canPresentWindowsIsSupported) {
root.presentWindows(root.plasma515 ? model.WinIdList: model.LegacyWinIdList );
}
} else {