summaryrefslogtreecommitdiff
path: root/modules/bar
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-03-15 22:33:15 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-03-15 22:33:15 +1100
commit5d492539d1b99824af7b38ac6c007191a1c8a34d (patch)
treef921a441a48c6d1c10904edc466f5693b2fdf46c /modules/bar
parentbar/activewindow: allow disable show on hover (diff)
downloadcaelestia-shell-5d492539d1b99824af7b38ac6c007191a1c8a34d.tar.gz
caelestia-shell-5d492539d1b99824af7b38ac6c007191a1c8a34d.tar.bz2
caelestia-shell-5d492539d1b99824af7b38ac6c007191a1c8a34d.zip
bar/activewindow: toggle when not show on hover
Diffstat (limited to 'modules/bar')
-rw-r--r--modules/bar/components/ActiveWindow.qml10
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;
+ }
}
}
}