Bug 448512 - Missing leave event after applying option in title bar menu
Summary: Missing leave event after applying option in title bar menu
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.23.90
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-15 08:32 UTC by Anthony Fieroni
Modified: 2022-01-28 11:12 UTC (History)
0 users

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


Attachments

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