improve publish tasks geometries

--this improves the way tasks geometries are
published for the windows. This improves the
experience for the minimize kwin effects. With the
old code there were many cases that the animation
was broken
pull/1/head
Michail Vourlakos 8 years ago
parent 8c1ac52ac1
commit e34e49273c

@ -73,10 +73,6 @@ Item{
}
onNormalStateChanged: {
if(normalState && nowDock) {
nowDock.publishTasksGeometries();
}
if (normalState) {
root.updateAutomaticIconSize();
}

@ -855,6 +855,12 @@ DragDrop.DropArea {
animationsNeedLength = Math.max(animationsNeedLength + step, 0);
//when need length animations are ended it would be a good idea
//to update the tasks geometries in the plasmoid
if(animationsNeedLength === 0 && nowDock) {
nowDock.publishTasksGeometries();
}
visibilityManager.updateMaskArea();
}

@ -170,6 +170,10 @@ MouseArea{
mainItemContainer.groupWindowRemoved();
}
if (windowsCount>=1) {
mainItemContainer.slotPublishGeometries();
}
previousCount = windowsCount;
}
}

Loading…
Cancel
Save