summaryrefslogtreecommitdiff
path: root/bar/Power.qml
diff options
context:
space:
mode:
Diffstat (limited to 'bar/Power.qml')
-rw-r--r--bar/Power.qml15
1 files changed, 7 insertions, 8 deletions
diff --git a/bar/Power.qml b/bar/Power.qml
index a29bc4a..02da1f1 100644
--- a/bar/Power.qml
+++ b/bar/Power.qml
@@ -110,14 +110,13 @@ Item {
}
}
- MouseArea {
- anchors.fill: parent
- hoverEnabled: true
- onEntered: {
- root.collapsed = false;
- }
- onExited: {
- root.collapsed = true;
+ HoverHandler {
+ onHoveredChanged: {
+ if (!hovered) {
+ root.collapsed = true;
+ } else {
+ root.collapsed = false;
+ }
}
}
}