Bug 427988

Summary: Right mouse button performs context menu action on Wayland
Product: [Plasma] kwin Reporter: Rainer Finke <rainer>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: bugseforuns, nate
Priority: NOR    
Version: 5.20.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://bugreports.qt.io/browse/QTBUG-57849
Latest Commit: Version Fixed In:

Description Rainer Finke 2020-10-19 15:32:16 UTC
When using the right mouse button on Plasma Wayland in normal applications, mostly the first entry of the context menu is performed without a user action if moving the mouse cursor fast enough over the context menu.


I can reproduce this issue on normal Wayland and XWayland applications. But for testing it is the most obvious in system monitor.

It is possible that this has been added to use gestures but I don't see how anybody can select specific menu entries that fast.

STEPS TO REPRODUCE
1. Open system monitor
2. Go to system load tab and move mouse into the CPU History chart
3. Right Click and move mouse immediately over the context menu

OBSERVED RESULT
- Action is performed without user interaction

EXPECTED RESULT
- Nothing (any action requires left mouse click)


Operating System: Arch Linux
KDE Plasma Version: 5.20.0
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.1-arch1-1
OS Type: 64-bit
Comment 1 Patrick Silva 2020-10-19 17:21:30 UTC
Qt bug?
https://bugreports.qt.io/browse/QTBUG-57849
Comment 2 Rainer Finke 2020-10-20 09:00:44 UTC
Yes, that is the same issue. I was not aware that this is a Qt bug... Well, as it is open already for so many years, my hope is very low now to see it fixed :-(
Comment 3 Vlad Zahorodnii 2020-10-20 10:34:14 UTC
Can you reproduce this bug with other compositors? Maybe we could work around it somehow...
Comment 4 Rainer Finke 2020-10-27 16:43:29 UTC
I've tried KWinFT and Sway, both show the same issue.