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:
parent
56837c239b
commit
078db6daaf
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user