Bug 464618

Summary: Context menus close when hovering a different application on Wayland with focus-follows-mouse
Product: [Plasma] kwin Reporter: Linus Kardell <linus.kardell>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate
Priority: NOR    
Version: 5.26.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Linus Kardell 2023-01-21 22:33:16 UTC
SUMMARY
When you open a context menu in Wayland and have focus-follows-mouse enabled, the menu closes when hovering a different application. This is a regression compared to X11, where the context menu didn't close until you clicked. Although Plasma panels suffer this same issue on X11, where context menus don't, see https://bugs.kde.org/show_bug.cgi?id=336285.

STEPS TO REPRODUCE
1. Run on Wayland
2. Enable focus-follows-mouse
3. Right click in a window to open a context menu
4. Hover a different application (I tried it between Firefox and Kate, in both directions, both native Wayland and XWayland).

OBSERVED RESULT
Context menu closes

EXPECTED RESULT
Context menu should not close until you click somewhere outside it

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230119
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Kernel Version: 6.1.7-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 Gibyte of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
Manufacturer: ASUS