diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/bar/components/ActiveWindow.qml | 10 |
1 files changed, 7 insertions, 3 deletions
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; + } } } } |