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
v0.6
Michail Vourlakos 8 years ago
parent c22d7ae1c2
commit 8561881275

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

@ -855,6 +855,12 @@ DragDrop.DropArea {
animationsNeedLength = Math.max(animationsNeedLength + step, 0); 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(); visibilityManager.updateMaskArea();
} }

@ -170,6 +170,10 @@ MouseArea{
mainItemContainer.groupWindowRemoved(); mainItemContainer.groupWindowRemoved();
} }
if (windowsCount>=1) {
mainItemContainer.slotPublishGeometries();
}
previousCount = windowsCount; previousCount = windowsCount;
} }
} }
@ -667,7 +671,7 @@ MouseArea{
if (model.IsGroupParent) { if (model.IsGroupParent) {
if (windowSystem.compositingActive) { if (windowSystem.compositingActive) {
root.presentWindows(model.LegacyWinIdList); root.presentWindows(model.LegacyWinIdList);
} else { } else {
if ((windowsPreviewDlg.visualParent === mainItemContainer)&&(windowsPreviewDlg.visible)) { if ((windowsPreviewDlg.visualParent === mainItemContainer)&&(windowsPreviewDlg.visible)) {
windowsPreviewDlg.hide(); windowsPreviewDlg.hide();
} else { } else {

Loading…
Cancel
Save