Bug 448512

Summary: Missing leave event after applying option in title bar menu
Product: [Plasma] kwin Reporter: Anthony Fieroni <bvbfan>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: minor    
Priority: NOR    
Version First Reported In: 5.23.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Anthony Fieroni 2022-01-15 08:32:58 UTC
STEPS TO REPRODUCE
1. Right click on title bar or click on title bar menu icon
2. Select Desktops
3. There are On all desktop, Desktop 1, Desktop 2 etc.
4. Select move or any option
5. Extra click is needed (it looks like leave event is missing)

OBSERVED RESULT
One extra click is needed only on Wayland (it's correct on X11)

EXPECTED RESULT
No extra click, leave event should be propagated

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Plasma Wayland
(available in About System)
KDE Plasma Version: 5.23.90
KDE Frameworks Version: 5.90
Qt Version: 5.15

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2022-01-26 16:15:06 UTC
Works fine on my machine running git master? What widget style do you use?
Comment 2 Anthony Fieroni 2022-01-26 16:27:41 UTC
Standard - Breeze.
Comment 3 Anthony Fieroni 2022-01-26 16:29:07 UTC
Master is probably not the same as 5.24, but it happens every time. Click on task manager, the same.
Comment 4 Vlad Zahorodnii 2022-01-28 11:12:50 UTC
KWin sends a leave event, this must be a qmenu bug. Can you file an upstream bug report please? This bug can be also reproduced with regular wayland applications:

* kill plasmashell or start nested `dbus-run-session kwin_wayland --exit-with-session=kate` or weston
* start kate or dolphin
* right click
* open some nested menu so it hangs a little bit outside the main window
* move the cursor outside the nested menu so it ends up outside the main window in the dark area