Bug 444808

Summary: Clicking outside of the window while context menu is open keeps the context menu visible and unfocuses the window
Product: [Applications] plasma-systemmonitor Reporter: Katalin Rebhan <me>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: ahiemstra, plasma-bugs-null
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Katalin Rebhan 2021-11-02 07:57:22 UTC
SUMMARY
The context menu of the system monitor doesn't behave like a context menu. Clicking outside the system monitor window unfocuses the window and the context menu stays active instead of disappearing and keeping the focus on the window. Additionally, it draws exclusively inside the window instead of overflowing outside when opened in a corner.

STEPS TO REPRODUCE
1. Open a context menu in system monitor
2. Click on another window

OBSERVED RESULT
Context menu stays open while system monitor loses focus

EXPECTED RESULT
Context menu closes and system monitor stays the active window

SOFTWARE/OS VERSIONS
Operating System: Gentoo 2.8
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.14.15-gentoo-dist (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 23.4 GiB of RAM
Graphics Processor: Radeon RX Vega

ADDITIONAL INFORMATION
Comment 1 Arjen Hiemstra 2021-11-02 10:36:14 UTC
This is an upstream issue with QtQuick Controls 2 menus. There isn't really anything that can be done on the application side. See https://bugreports.qt.io/browse/QTBUG-69558