Bug 412667

Summary: Dialog Parent darkens windows permanently
Product: [Plasma] kwin Reporter: Nicolas LIENART <nicolas>
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: REOPENED ---    
Severity: normal CC: joao.vidal.silva
Priority: NOR    
Version First Reported In: 5.16.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Resulting window when triggering the bug
Normal behavior
Original window

Description Nicolas LIENART 2019-10-06 11:44:02 UTC
Created attachment 123054 [details]
Resulting window when triggering the bug

SUMMARY
When enabled, the "Dialog Parent" desktop effect darkens the parent window permanently under certain circumstances.

STEPS TO REPRODUCE
1. Enable Dialog Parent in Desktop Effects
2. Open a window
3. Open a dialog for this window
4. Switch window or desktop while the dialog is still open
5. Switch back to the window
6. Quit the dialog
7. Switch window or desktop
8. Come back to the window and it is now permanent

OBSERVED RESULT
The original window is is permanently dark

EXPECTED RESULT
It should be back at normal, as there's no open dialog left 


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 19.04, 2 different laptops

KDE Plasma Version: 5.15.4 and 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
The easy fix is to disable Dialog Parent effect
Comment 1 Nicolas LIENART 2019-10-06 11:45:04 UTC
Created attachment 123055 [details]
Normal behavior
Comment 2 Nicolas LIENART 2019-10-06 11:45:23 UTC
Created attachment 123056 [details]
Original window
Comment 3 Vlad Zahorodnii 2019-10-07 09:42:14 UTC
Does this bug occur with occur applications?
Comment 4 Nicolas LIENART 2019-10-07 16:36:47 UTC
(In reply to Vlad Zahorodnii from comment #3)
> Does this bug occur with occur applications?

Could you clarify please?
Comment 5 Vlad Zahorodnii 2019-10-07 16:42:52 UTC
Oops, sorry. Can you reproduce this bug with other applications, e.g. Chromium?
Comment 6 Nicolas LIENART 2019-10-07 16:54:27 UTC
(In reply to Vlad Zahorodnii from comment #5)
> Oops, sorry. Can you reproduce this bug with other applications, e.g.
> Chromium?

Absolutely yes, I tried with Thunderbird, Firefox, KeepassXC and Okular so I assume that I could reproduce that with every single app on my system.
Comment 7 Vlad Zahorodnii 2019-11-18 13:40:12 UTC
Has this bug been fixed by itself? ;-)
Comment 8 Nicolas LIENART 2019-11-19 13:15:29 UTC
(In reply to Vlad Zahorodnii from comment #7)
> Has this bug been fixed by itself? ;-)

I am running Plasma 5.17 now and it didn't happen again on this version. :-)
Comment 9 Nicolas LIENART 2019-11-20 11:47:38 UTC
Actually the bug is still there I don't know what happened :-/
Comment 10 Vlad Zahorodnii 2019-11-20 12:52:22 UTC
Hmm, I can't reproduce this bug. Could you please provide a screen recording to demonstrate the issue?
Comment 11 Nicolas LIENART 2019-11-22 21:22:03 UTC
(In reply to Vlad Zahorodnii from comment #10)
> Hmm, I can't reproduce this bug. Could you please provide a screen recording
> to demonstrate the issue?

The issue seems to be pretty rare on plasma 5.17. I'm having difficulties to find a pattern now, but it still happens sometimes. I'll come back here if I can get more information to work with.