From 4139948d11a5b8501ab6b084a9bced074ea5e654 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 1 Sep 2019 20:04:12 +0300 Subject: [PATCH] activate single windows directly in !compositing --meaning to not activate the previews window in that case. Single windows should be activated immediately after left click, previews are not necessary in that case. FIXED-IN:0.9.2 --- plasmoid/package/contents/ui/task/TaskItem.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plasmoid/package/contents/ui/task/TaskItem.qml b/plasmoid/package/contents/ui/task/TaskItem.qml index 595d44e82..f97933f23 100644 --- a/plasmoid/package/contents/ui/task/TaskItem.qml +++ b/plasmoid/package/contents/ui/task/TaskItem.qml @@ -844,10 +844,9 @@ MouseArea{ } else if (mouse.button == Qt.LeftButton){ if( !taskItem.isLauncher ){ if ( (root.leftClickAction === Latte.Types.PreviewWindows && isGroupParent) - || (Latte.WindowSystem.isPlatformWayland + || ( (Latte.WindowSystem.isPlatformWayland || !Latte.WindowSystem.compositingActive) && root.leftClickAction === Latte.Types.PresentWindows - && isGroupParent) - || !Latte.WindowSystem.compositingActive) { + && isGroupParent) ) { if(windowsPreviewDlg.activeItem !== taskItem){ showPreviewWindow(); } else {