From 5d492539d1b99824af7b38ac6c007191a1c8a34d Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 15 Mar 2026 22:33:15 +1100 Subject: bar/activewindow: toggle when not show on hover --- modules/bar/components/ActiveWindow.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml index 4881f42..62bab0f 100644 --- a/modules/bar/components/ActiveWindow.qml +++ b/modules/bar/components/ActiveWindow.qml @@ -46,9 +46,13 @@ Item { cursorShape: Qt.PointingHandCursor onClicked: { const popouts = root.bar.popouts; - popouts.currentName = "activewindow"; - popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y; - popouts.hasCurrent = true; + if (popouts.hasCurrent) { + popouts.hasCurrent = false; + } else { + popouts.currentName = "activewindow"; + popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y; + popouts.hasCurrent = true; + } } } } -- cgit v1.2.3-freya