summaryrefslogtreecommitdiff
path: root/modules/bar/components
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-03-15 22:29:28 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-03-15 22:29:28 +1100
commit521cd4079ee665dda1881fb6082497d58d654969 (patch)
treecc67b67be41223a878b92ddcd72e395f0be6a152 /modules/bar/components
parentbar/activewindow: format (diff)
downloadcaelestia-shell-521cd4079ee665dda1881fb6082497d58d654969.tar.gz
caelestia-shell-521cd4079ee665dda1881fb6082497d58d654969.tar.bz2
caelestia-shell-521cd4079ee665dda1881fb6082497d58d654969.zip
bar/activewindow: allow disable show on hover
Closes #1209 Closes #1019
Diffstat (limited to 'modules/bar/components')
-rw-r--r--modules/bar/components/ActiveWindow.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml
index 3eb6904..4881f42 100644
--- a/modules/bar/components/ActiveWindow.qml
+++ b/modules/bar/components/ActiveWindow.qml
@@ -38,6 +38,21 @@ Item {
implicitWidth: Math.max(icon.implicitWidth, current.implicitHeight)
implicitHeight: icon.implicitHeight + current.implicitWidth + current.anchors.topMargin
+ Loader {
+ anchors.fill: parent
+ active: !Config.bar.activeWindow.showOnHover
+
+ sourceComponent: MouseArea {
+ 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;
+ }
+ }
+ }
+
MaterialIcon {
id: icon