Bug 427988 - Right mouse button performs context menu action on Wayland
Summary: Right mouse button performs context menu action on Wayland
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.20.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://bugreports.qt.io/browse/QTBUG...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-19 15:32 UTC by Rainer Finke
Modified: 2020-11-05 22:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.