From f5175b6135ca9826fc7cb2b6960b8a8578016e6e Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 11 Nov 2017 13:44:01 +0200 Subject: [PATCH] fixes for title tooltips --disable direct rendering when a title tooltip becomes hidden and the mouse isnt in the dock. This fixes an issue when the user enters the dock and the parabolic animation wasnt playing correctly in some cases --do not show a title tooltip if the dock !containsMouse. This way some tooltips that were still shown when the mouse wasnt inside the dock is fixed. --- containment/package/contents/ui/main.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/containment/package/contents/ui/main.qml b/containment/package/contents/ui/main.qml index eaa3dd5d9..3473b6b32 100644 --- a/containment/package/contents/ui/main.qml +++ b/containment/package/contents/ui/main.qml @@ -1270,7 +1270,9 @@ DragDrop.DropArea { id: showTitleTooltipTimer interval: 100 onTriggered: { - titleTooltipDialog.update(); + if (dock && dock.visibility && dock.visibility.containsMouse) { + titleTooltipDialog.update(); + } if (root.debugModeTimers) { console.log("containment timer: showTitleTooltipTimer called..."); @@ -1284,6 +1286,10 @@ DragDrop.DropArea { onTriggered: { if (!titleTooltipDialog.activeItemHovered) { titleTooltipDialog.visible = false; + if (dock && dock.visibility && !dock.visibility.containsMouse) { + enableDirectRenderTimer.stop(); + setGlobalDirectRender(false); + } } if (root.debugModeTimers) {