fix: close other popouts when hover activewindow

This commit is contained in:
2 * r + 2 * t 2026-03-15 22:36:40 +11:00
parent 5d492539d1
commit 377778596a

View file

@ -44,6 +44,12 @@ Item {
sourceComponent: MouseArea { sourceComponent: MouseArea {
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
hoverEnabled: true
onPositionChanged: {
const popouts = root.bar.popouts;
if (popouts.hasCurrent && popouts.currentName !== "activewindow")
popouts.hasCurrent = false;
}
onClicked: { onClicked: {
const popouts = root.bar.popouts; const popouts = root.bar.popouts;
if (popouts.hasCurrent) { if (popouts.hasCurrent) {