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 cursorShape: Qt.PointingHandCursor
onClicked: { onClicked: {
const popouts = root.bar.popouts; const popouts = root.bar.popouts;
if (popouts.hasCurrent) {
popouts.hasCurrent = false;
} else {
popouts.currentName = "activewindow"; popouts.currentName = "activewindow";
popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y; popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y;
popouts.hasCurrent = true; popouts.hasCurrent = true;
} }
} }
} }
}
MaterialIcon { MaterialIcon {
id: icon id: icon