diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml index 4881f420..62bab0f6 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; + } } } }