Bug 421648

Summary: Context menu mouse-up behavior is inconsistent
Product: [Plasma] kwin Reporter: Sefa Eyeoglu <contact>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: major    
Priority: NOR    
Version First Reported In: 5.18.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sefa Eyeoglu 2020-05-16 21:08:04 UTC
SUMMARY
Context menus managed by KWin behave inconsistently since I upgraded to 5.19 Beta. See OBSERVED RESULT

STEPS TO REPRODUCE
0. Run X11 session (haven't tested Wayland)
1. Open Dolphin
2. Play around with context menu

OBSERVED RESULT
When holding right-click and hovering over an option and then releasing, it does not trigger the option.
When opening the menu and then holding left-click on a menu item to then hover to another, it does not trigger most of the time, sometimes it does?

EXPECTED RESULT
Holding right-click and hovering over an option should trigger it on release, just like before.
Holding left-click while the menu is open should trigger the option when released.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.18.90
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.6.13-zen1-1-zen

Arch Linux Repo: kde-unstable

ADDITIONAL INFORMATION
https://www.youtube.com/watch?v=lcnOiTJA08s
Video showing some of the behavior.
Comment 1 Sefa Eyeoglu 2020-05-16 21:15:24 UTC
Okay I think I found the gist of it: When holding Right-Click in Dolphin, the new context menu "does not know of it" so it doesn't react for the mouseup? Now: If I do the left-click hold action it works, as long as the context menu does not loose focus. If I hold left-click and quickly move to an option without opening one of the sub-menus it works. If I open a submenu, though, I guess both menus "forget" that left-click was held, similarly for the right-click behavior above.
Comment 2 Sefa Eyeoglu 2020-05-16 21:36:31 UTC
https://youtu.be/LOEcs4occ1E Video of my other device, which is still on the following versions:

Operating System: Arch Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.69.0
Qt Version: 5.14.2
Kernel Version: 5.6.6-arch1-1
Comment 3 Sefa Eyeoglu 2020-05-16 21:37:02 UTC
(In reply to Sefa Eyeoglu from comment #2)
> https://youtu.be/LOEcs4occ1E Video of my other device, which is still on the
> following versions:
> 
> Operating System: Arch Linux 
> KDE Plasma Version: 5.18.4
> KDE Frameworks Version: 5.69.0
> Qt Version: 5.14.2
> Kernel Version: 5.6.6-arch1-1

I should add that it works as expected in this video
Comment 4 Vlad Zahorodnii 2020-05-18 08:42:42 UTC
In general, this is not a kwin bug since it doesn't manage context menus. Have you tried downgrading Qt?
Comment 5 Vlad Zahorodnii 2020-05-18 08:44:09 UTC
Okay... with Qt 5.14, everything works fine. with Qt 5.15, I can reproduce this bug. Can you file an upstream bug report in Qt?
Comment 6 Sefa Eyeoglu 2021-02-26 17:58:23 UTC
closing this as this issue does not appear with Qt 5.15.2