From 760f7c2001b84b724ccf4f5a2741bef35ef7bb6c Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 23 Aug 2025 23:20:37 +1000 Subject: interactions: fix popouts close on lose hover --- modules/drawers/Interactions.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index 94d27cc..0b3b17d 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -31,6 +31,10 @@ CustomMouseArea { return x >= panelX - Config.border.rounding && x <= panelX + panel.width + Config.border.rounding; } + function inLeftPanel(panel: Item, x: real, y: real): bool { + return x < bar.implicitWidth + panel.x + panel.width && withinPanelHeight(panel, x, y); + } + function inRightPanel(panel: Item, x: real, y: real): bool { return x > bar.implicitWidth + panel.x && withinPanelHeight(panel, x, y); } @@ -160,6 +164,8 @@ CustomMouseArea { // Show popouts on hover if (x < bar.implicitWidth) bar.checkPopout(y); + else if (!popouts.currentName.startsWith("traymenu") && !inLeftPanel(panels.popouts, x, y)) + popouts.hasCurrent = false; } // Monitor individual visibility changes -- cgit v1.2.3-freya