Bug 479956

Summary: windows lose focus and re-shade when using a menu with unshade-on-hover
Product: [Plasma] kwin Reporter: David Greaves <david>
Component: Window shadingAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: david
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David Greaves 2024-01-17 18:29:06 UTC
SUMMARY

Some windows lose focus and re-shade when using a menu (Eg Firefox, Thunderbird, gitk, Chromium, LibreOffice)
Others (Konsole) will do this with dialog boxes.

STEPS TO REPRODUCE
1. Appearance > Window Management > Window Behaviour > Advanced Tab >  Enable Window unshading On titlebar hover after "250ms"
2.  Shade a Firefox window (I double click on titlebar)
3.  Move mouse over titlebar - window unshades correctly.
4.  Right click in a text area to get a menu for cut/paste etc.

OBSERVED RESULT
Window and menu vanishes


EXPECTED RESULT
Window stays visible until the focus leaves the window or any child window.

SOFTWARE/OS VERSIONS

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-17-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 123.7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C91
System Version: 2.0

ADDITIONAL INFORMATION