improve LeftClick::PreviewWindows

--when the user clicks a single window now it is
just activated instead of showing first the preview
window showing only one instance

BUG:410417
pull/8/head
Michail Vourlakos 6 years ago
parent 5bab4b0409
commit 43d1985d4e

@ -826,7 +826,7 @@ MouseArea{
}
} else if (mouse.button == Qt.LeftButton){
if( !taskItem.isLauncher ){
if (root.leftClickAction === Latte.Types.PreviewWindows
if ( (root.leftClickAction === Latte.Types.PreviewWindows && isGroupParent)
|| (Latte.WindowSystem.isPlatformWayland
&& root.leftClickAction === Latte.Types.PresentWindows
&& isGroupParent)
@ -836,7 +836,8 @@ MouseArea{
} else {
hidePreviewWindow();
}
} else if (root.leftClickAction === Latte.Types.PresentWindows && !(isGroupParent && !Latte.WindowSystem.compositingActive)) {
} else if ( (root.leftClickAction === Latte.Types.PresentWindows && !(isGroupParent && !Latte.WindowSystem.compositingActive))
|| ((root.leftClickAction === Latte.Types.PreviewWindows && !isGroupParent)) ) {
activateTask();
} else if (root.leftClickAction === Latte.Types.CycleThroughTasks) {
if (isGroupParent)

Loading…
Cancel
Save