fixed forceHide logic so that the bluetooth menu works

This commit is contained in:
2026-06-30 12:03:18 +01:00
parent 8abc848325
commit 7a324e6119
2 changed files with 18 additions and 18 deletions

View File

@@ -15,16 +15,19 @@ Item {
property double boxRadius: 9
property double boxWidth: 100
readonly property double calculatedTopMargin: {
if (root.exclusiveToScreen) {
let baseMargin = hoverableWhenHidden == true ? 8 : -4;
if (Hyprland.focusedMonitor != root.exclusiveMonitor || forceHidden == true) {
return baseMargin - root.boxHeight - 5;
} else {
return visibleTopMargin;
}
} else {
if (!root.exclusiveToScreen) {
return visibleTopMargin;
}
if (Hyprland.focusedMonitor == root.exclusiveMonitor) {
if (!root.forceHidden) {
return visibleTopMargin;
} else if (root.hoverableWhenHidden) {
return 7 - root.boxHeight - 5;
}
}
return -4 - root.boxHeight - 5;
}
property Component defaultItem
required property HyprlandMonitor exclusiveMonitor