bar/activewindow: toggle when not show on hover

This commit is contained in:
2 * r + 2 * t 2026-03-15 22:33:15 +11:00
parent 521cd4079e
commit 5d492539d1

View file

@ -46,12 +46,16 @@ Item {
cursorShape: Qt.PointingHandCursor
onClicked: {
const popouts = root.bar.popouts;
if (popouts.hasCurrent) {
popouts.hasCurrent = false;
} else {
popouts.currentName = "activewindow";
popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y;
popouts.hasCurrent = true;
}
}
}
}
MaterialIcon {
id: icon