1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-13 05:17:48 +03:00

fix some previews issues

This commit is contained in:
Michail Vourlakos 2020-05-04 18:43:09 +03:00
parent 81abb0eb35
commit a0e4f688e5
5 changed files with 23 additions and 6 deletions

View File

@ -1244,6 +1244,15 @@ Item {
}
}
Connections {
target: latteView
onContextMenuIsShownChanged: {
if (!latteView.contextMenuIsShown) {
root.startCheckRestoreZoomTimer();
}
}
}
////END interfaces
/////BEGIN: Title Tooltip///////////

View File

@ -66,7 +66,7 @@
</entry>
<entry name="previewsDelay" type="Int">
<label>Delay in order to show previews or highlight windows. Values lower than 150ms are ignored because previews do not work correctly</label>
<default>300</default>
<default>150</default>
</entry>
<entry name="forceMonochromaticIcons" type="Bool">
<default>false</default>

View File

@ -70,7 +70,6 @@ PlasmaComponents.ContextMenu {
launcherToggleAction.checked = (tasksModel.launcherPosition(get(atm.LauncherUrlWithoutIcon)) != -1);
activitiesDesktopsMenu.refresh();
} else if (status == PlasmaComponents.DialogStatus.Closed) {
root.startCheckRestoreZoomTimer(100);
root.contextMenu = null;
menu.destroy();
backend.ungrabMouse(visualParent);
@ -329,13 +328,13 @@ PlasmaComponents.ContextMenu {
}
Component.onDestruction: {
Component.onDestruction: {
if (!changingLayout) {
root.contextMenu = null;
backend.ungrabMouse(visualParent);
//root.signalDraggingState(false);
root.disableRestoreZoom = false;
root.startCheckRestoreZoomTimer(100);
root.startCheckRestoreZoomTimer();
}
}

View File

@ -525,8 +525,11 @@ Item {
//! triggered together.
if (containsMouse) {
hidePreviewWinTimer.stop();
root.stopCheckRestoreZoomTimer();
root.setGlobalDirectRender(false);
} else {
hide(7.3);
hide(7.3);
root.startCheckRestoreZoomTimer();
}
}

View File

@ -139,6 +139,8 @@ MouseArea{
property bool isWindow: (IsWindow === true) ? true : false
property bool isZoomed: false
property bool blockClearZoom: root.contextMenu
property bool canPublishGeometries: (isWindow || isStartup || isGroupParent) && visible && width>=taskItem.metrics.iconSize && height>=taskItem.metrics.iconSize
&& !taskItem.delayingRemove
&& (wrapper.mScale===1 || wrapper.mScale===root.zoomFactor) //don't publish during zoomFactor
@ -660,7 +662,11 @@ MouseArea{
root.latteView.hideTooltipLabel();
}
if (root.zoomFactor>1){
if (root.showPreviews) {
root.hidePreview(17.5);
}
if (root.zoomFactor>1 && !blockClearZoom){
root.startCheckRestoreZoomTimer();
}
}