fix #679,block highlight windows for previews

--when both previews and highlight windows are enabled
then the user can use the window previews to highlight
windows
pull/1/head
Michail Vourlakos 8 years ago
parent a666f4f685
commit ec58ce6cf6

@ -654,7 +654,7 @@ MouseArea{
////window previews/////////
if (isWindow) {
if(containsMouse && (root.showPreviews || root.highlightWindows) && Latte.WindowSystem.compositingActive){
if(containsMouse && (root.showPreviews || (!root.showPreviews && root.highlightWindows)) && Latte.WindowSystem.compositingActive){
hoveredTimerObj = hoveredTimerComponent.createObject(mainItemContainer);
}
else{
@ -1260,9 +1260,7 @@ MouseArea{
if (root.showPreviews) {
mainItemContainer.preparePreviewWindow(false);
windowsPreviewDlg.show(mainItemContainer);
}
if (mainItemContainer.isWindow && root.highlightWindows) {
} else if (mainItemContainer.isWindow && root.highlightWindows) {
root.windowsHovered(model.LegacyWinIdList, mainItemContainer.containsMouse);
}
}

Loading…
Cancel
Save