Skip to content

plugins/kdecoration: Fix MenuButton not accepting button press events

Vlad Zahorodnii requested to merge work/cherry-pick-a9377db1 into Plasma/6.1

If two mouse areas are stacked on top of each other and a button press event is sent so one of them accepts it, QMouseEvent::isAccepted() will still return false. It's a QtQuick bug, see the associated upstream bug report https://bugreports.qt.io/browse/QTBUG-126733.

On the other hand, given that the MenuButton implements its own input handling, we can port it away from DecorationButton to mitigate the issue.

BUG: 488993

(cherry picked from commit a9377db1)

Co-authored-by: Vlad Zahorodnii vlad.zahorodnii@kde.org

Merge request reports

Loading