SmartPanel: prevent closing panel by right clicking inside the panel inactive area.

This commit is contained in:
ItsLemmy
2025-11-10 13:59:02 -05:00
parent d7d2876209
commit f708a039bd
+4 -4
View File
@@ -1037,11 +1037,11 @@ Item {
// This prevents closing the panel when clicking inside it
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
z: -1 // Behind content, but on the panel background
onClicked: {
// Accept and ignore - prevents propagation to background
}
onClicked: mouse => {
mouse.accepted = true // Accept and ignore - prevents propagation to background
}
}
}