1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-11 13:18:13 +03:00

tasks:support plasma 5.25 present windows

BUG:454296
This commit is contained in:
Michail Vourlakos 2022-06-16 16:15:57 +03:00
parent 73abdf7a13
commit 6009db6163

View File

@ -177,7 +177,18 @@ MouseArea {
activateTask();
}
} else if (mouse.button == Qt.LeftButton){
var canPresentWindowsIsSupported = LatteCore.WindowSystem.compositingActive && (root.plasmaGreaterThan522 ? backend.canPresentWindows : backend.canPresentWindows());
var canPresentWindowsIsSupported = false;
if (root.plasmaAtLeast525) {
//! At least Plasma 5.25 case
canPresentWindowsIsSupported = LatteCore.WindowSystem.compositingActive && backend.windowViewAvailable;
} else if (root.plasmaGreaterThan522) {
//! At least Plasma 5.23 case
canPresentWindowsIsSupported = LatteCore.WindowSystem.compositingActive && backend.canPresentWindows;
} else {
//! past Plasma versions
canPresentWindowsIsSupported = LatteCore.WindowSystem.compositingActive && backend.canPresentWindows();
}
if( !taskItem.isLauncher && !root.disableAllWindowsFunctionality ){
if ( (root.leftClickAction === LatteTasks.Types.PreviewWindows && isGroupParent)