Bug 464618 - Context menus close when hovering a different application on Wayland with focus-follows-mouse
Summary: Context menus close when hovering a different application on Wayland with foc...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.26.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-21 22:33 UTC by Linus Kardell
Modified: 2023-01-23 23:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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