From 24a3da813862623b3eec05ef5050ba715e08c684 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 2 Jun 2025 16:31:26 +0800 Subject: feat: bar popouts Create active window popout --- modules/drawers/Interactions.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'modules/drawers/Interactions.qml') diff --git a/modules/drawers/Interactions.qml b/modules/drawers/Interactions.qml index cd09140..03c4e5e 100644 --- a/modules/drawers/Interactions.qml +++ b/modules/drawers/Interactions.qml @@ -37,6 +37,7 @@ MouseArea { visibilities.osd = false; osdHovered = false; visibilities.dashboard = false; + Popouts.hasCurrent = false; } } @@ -58,6 +59,18 @@ MouseArea { // Show dashboard on hover const showDashboard = root.inTopPanel(panels.dashboard, x, y); visibilities.dashboard = showDashboard; + + // Show popouts on hover + const popout = panels.popouts; + if (x < BorderConfig.thickness + popout.width) { + if (x < BorderConfig.thickness) + // Handle like part of bar + Visibilities.bars[screen].checkPopout(y); + else + // Keep on hover + Popouts.hasCurrent = withinPanelHeight(popout, x, y); + } else + Popouts.hasCurrent = false; } Osd.Interactions { -- cgit v1.2.3-freya