diff --git a/bar/PowerButton.qml b/bar/PowerButton.qml index 173088e..fb18d0a 100644 --- a/bar/PowerButton.qml +++ b/bar/PowerButton.qml @@ -11,16 +11,19 @@ Item { height: parent.height implicitWidth: parent.height + Process { + id: powermenu + running: false + command: [ "wlogout" ] + } + MouseArea { anchors.fill: parent acceptedButtons: Qt.LeftButton onPressed: (event) => { - powermenu.exec({}); - } - Process { - id: powermenu - running: false - command: [ "wlogout" ] + if (!powermenu.running){ + powermenu.exec({}); + } } }