STEPS TO REPRODUCE 1. Invoke "kcmshell5 kcm_kwinrules". 2. Configure. 3. Apply configuration. OBSERVED RESULT The screen presents blackness whilst Plasma is re-drawn. EXPECTED RESULT The screen should not flash blackness, because what presents the graphical interface of Plasma should wait until the interface has been replaced before it attemps to present anything. SOFTWARE/OS VERSIONS Windows: Negative. macOS: Negative. Linux/KDE Plasma: Positive. KDE Plasma Version: 5.24.5. KDE Frameworks Version: 5.93.0. Qt Version: 5.15.3. ADDITIONAL INFORMATION I worry that for slow computers, the blackness that I refer to may last some time whilst the screen re-draws. This is problematic because it could cause the user to expect that the modification has erroneously impacted their system, whereas it is merely applying the modification slowly. Remediation of this may be possible if the mouse utilises the loading-symbol before application commences, so that the last frame that remains demonstrates that something is occuring. Windows has remediated this problem by presenting a screen that is similar to what "http://ostechnix.com/wp-content/uploads/2022/05/Installing-Updates.png" depicts, so I believe that re-use of the animation that is presented during authentication by Plasma is probably ideal for KDE.
Can confirm.
I suspect this has not to do with rules, but with kwin reconfiguration (which in turn has to be called for the new rules to take effect). Can you try `qdbus org.kde.KWin /KWin org.kde.KWin.reconfigure` to see if that's the case? This flickering effect shouldn't happen on Wayland, just on X11, and I cannot think of a way that it could be avoided there (based on the fact that it never were).
"qdbus org.kde.KWin /KWin org.kde.KWin.reconfigure" invokes the blackness.
Can confirm that it doesn't happen on Wayland. On X11, I wonder if we could hide the black flicker by using the new Blend effect. Do you think that would be technically feasible?
(In reply to Nate Graham from comment #4) > Can confirm that it doesn't happen on Wayland. On X11, I wonder if we could > hide the black flicker by using the new Blend effect. Do you think that > would be technically feasible? I'm not sure because as far as I understand reconfigure is kind of a soft reset for kwin, but it's worth investigating. If it's possible it would be a nice solution. Senior kwin devs might have a better clue here :)
This can't really be worked around, turning compositing off and on again is just inherently glitchy with how X11 works