1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

remove deprecated apis for ParabolicManager

This commit is contained in:
Michail Vourlakos 2020-05-23 01:03:41 +03:00
parent 79bcf40e5f
commit 9e0fa5d6cd
2 changed files with 15 additions and 13 deletions

View File

@ -329,15 +329,17 @@ MouseArea{
return;
}
if ((windowsCount >= 2) && (windowsCount > previousCount)
&& !(taskItem.containsMouse || parabolicManager.neighbourIsHovered(itemIndex)) ){
if(root.dragSource == null)
taskItem.groupWindowAdded();
}
else if ((windowsCount >=1) &&(windowsCount < previousCount)){
if ((windowsCount >= 2)
&& (windowsCount > previousCount)
&& !(taskItem.containsMouse)
&& !root.dragSource ){
taskItem.groupWindowAdded();
} else if ((windowsCount >= 1)
&& (windowsCount < previousCount)
&& !root.dragSource
&& !taskItem.delayingRemove){
//sometimes this is triggered in dragging with no reason
if(root.dragSource == null && !taskItem.delayingRemove)
taskItem.groupWindowRemoved();
taskItem.groupWindowRemoved();
}
if (windowsCount>=1) {

View File

@ -62,17 +62,17 @@ SequentialAnimation{
}
onStopped: {
if (!taskItem.containsMouse && !parabolicManager.neighbourIsHovered(itemIndex)) {
/*if (!taskItem.containsMouse && !parabolicManager.neighbourIsHovered(itemIndex)) {
taskItem.inMimicParabolicAnimation = false;
} else {
taskItem.inMimicParabolicAnimation = true;
}
}*/
newWindowAnimation.stop();
if (!taskItem.containsMouse && !parabolicManager.neighbourIsHovered(itemIndex)) {
taskItem.inBlockingAnimation = false;
}
//if (!taskItem.containsMouse && !parabolicManager.neighbourIsHovered(itemIndex)) {
taskItem.inBlockingAnimation = false;
//}
root.mimicEnterForParabolic();