| Summary: | "Close windows by double clicking the menu button" with custom window decorations also maximizes/minimizes window (and sometimes kills mouse input) | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Edoardo Lolletti <edoardo762> |
| Component: | decorations | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nate, swipe650 |
| Priority: | NOR | ||
| Version First Reported In: | 6.1.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/176e338c370bcee12037b34ae5ffaf2d3bcb8ec8 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Edoardo Lolletti
2024-06-22 17:49:36 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6008 Git commit a9377db1a903616f021fe5424a403600be25b545 by Vlad Zahorodnii. Committed on 28/06/2024 at 12:38. Pushed by vladz into branch 'master'. plugins/kdecoration: Fix MenuButton not accepting button press events 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. M +8 -4 src/plugins/kdecorations/aurorae/src/qml/MenuButton.qml https://invent.kde.org/plasma/kwin/-/commit/a9377db1a903616f021fe5424a403600be25b545 Git commit 176e338c370bcee12037b34ae5ffaf2d3bcb8ec8 by Vlad Zahorodnii. Committed on 28/06/2024 at 12:49. Pushed by vladz into branch 'Plasma/6.1'. plugins/kdecoration: Fix MenuButton not accepting button press events 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. (cherry picked from commit a9377db1a903616f021fe5424a403600be25b545) Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org> M +8 -4 src/plugins/kdecorations/aurorae/src/qml/MenuButton.qml https://invent.kde.org/plasma/kwin/-/commit/176e338c370bcee12037b34ae5ffaf2d3bcb8ec8 |