Bug 492684

Summary: "Translucency" Desktop effect leaves a ghostly window if minimizing it
Product: [Plasma] kwin Reporter: Жора Змейкин <katze_942>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: 2knchill, goodaqua, james.snietka, justamail12111, kde, kdedev, koshikas, loacoon1, SIDEPIPEUK
Priority: NOR    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Video demonstration

Description Жора Змейкин 2024-09-05 16:23:38 UTC
Created attachment 173352 [details]
Video demonstration

SUMMARY
If you enable the "Translucency" effect for "Inactive windows" and try to minimize a window that is out of focus, the minimized window remains on the screen without the possibility of interacting with it. The transition between desktops helps, I recorded it in the video.

STEPS TO REPRODUCE
1. Open the "System Settings"
2. Go to "Window Management" => "Desktop Effects"
3. Turn on the "Translucency" effect and go to its settings
4. Set the transparency value for "Inactive windows" to below 100%
5. Open the program and focus on any other object
6. Minimize the open program without switching the focus to it.

OBSERVED RESULT
The window remains after collapsing and cannot be interacted with. This is clearly visible in the video.

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.8-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Xeon® CPU E5-2640 v3 @ 2.60GHz
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 470 Graphics

Operating System: Sisyphus 20240122
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.4.0
Qt Version: 6.6.2
Kernel Version: 6.6.48-un-def-alt1 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-5200U CPU @ 2.20GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500
Manufacturer: Acer
Product Name: Aspire E5-573G
System Version: V3.72

ADDITIONAL INFORMATION
Make sure that you don't have "Focus follows mouse" enabled
Comment 1 reports_go_brrr 2024-09-19 19:02:44 UTC
Able to reproduce it.

Operating System: Arch Linux
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 2 Adam 2025-02-07 17:02:06 UTC
Also confirmed 100% reproducible. The only thing I would add is that turning the translucency effect off removes the ghost windows, so toggling the effect fixes the issue until you forget to focus then minimise next time.
Comment 3 Christian (Fuchs) 2025-02-09 18:20:52 UTC
Able to reproduce with X11 and nvidia as well, 

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1
Kernel Version: 6.12.11-200.fc41.x86_64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 7700X 8-Core Processor
Memory: 31.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4080/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D70
System Version: 1.0

This seems to be a regression of sorts, I didn't have it on the very same machine before updating to Fedora 41
Comment 4 Christian (Fuchs) 2025-02-09 18:35:06 UTC
And also reproducible on my intel notebook with only one screen, thus unrelated to graphic driver, X11 or Wayland and amount of screens.

Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.12.11-200.fc41.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-8265U CPU @ 1.60GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
Product Name: 20NQS30W00
System Version: ThinkPad X390 Yoga
Comment 5 TraceyC 2025-02-25 22:00:20 UTC
*** Bug 500535 has been marked as a duplicate of this bug. ***
Comment 6 TraceyC 2025-02-25 22:01:12 UTC
I can reproduce this with kcm_kwin_effects on git-master

- Had two application windows open
- Enabled Translucency
- Minimized the non-focused window

Result: Ghost image of the app remains that can't be interacted with
Comment 7 cwo 2025-06-08 20:54:09 UTC
*** Bug 505353 has been marked as a duplicate of this bug. ***
Comment 8 DarkLarva 2025-09-07 14:00:36 UTC
Was able to reproduce per original procedure.

Can temporarily fix by disabling / enabling effect and can confirm as a viable workaround for me.

Operating System: Kubuntu 25.04
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3
Kernel Version: 6.14.0-29-generic (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 31.3 GB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 Ti
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450 AORUS PRO WIFI