<table><tr><td style="">niccolove added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27439">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D27439#612897" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D27439#612897</a>, <a href="https://phabricator.kde.org/p/zzag/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@zzag</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>Bad wording, sorry. The main problem with the blur effect right now is that pixels nearby the blur region may affect the final blur result. For example, if you place two windows side by side, then the window with the highest stacking order will blur some parts of the other window. Perhaps we need to blur pixels that are strictly inside the blur region. I'm not sure what performance impact it will have and how we should deal with drop-shadows, though.</p></div>
</blockquote>
<p>Only blurring elements directly underneath was my first though as well. This has a problem, though: when you move a blurred area on top of a busy area (e.g.: transparent konsole on top of telegram) the borders of the blurred area flicker. This is because elements gets from "does not even exist" to "blurred" as soon as they get in the blur area completely changing the colors of the pixel within the blur radius instantaneously. I can say that because the feature of "only blurring when directly underneath" is already implemented for docks. To use it for any window, it's enough to change line 689 from "isDock" to "true". Doing that, you will notice the above mentioned effect. What I propose in this patch is to only apply the "only blur when directly underneath" for anything that has not a decoration, so plasmoids+krunner+context menus as well. We can safely do that as those elements generally do not move (the flickering is not present in animations) and when you try to move a window they close. Furthermore, this only happens on very transparent themes. So what you propose is to do "only blur underneath" for everything, while this patch is "only blur underneath" exclusively for noDecoration - if you think that applying it for everything is fine, only applying it to noDecoration should be fine as well. I tried this patch in various conditions and the only problem that I could find is when you a) have a very transparent theme b) move windows underneath plasmoids/krunner using alt+drag, and even in that case the flickering is not that strong; in my opinion, the overall benefit for everyone is much bigger.<br />
I hope this better explains the reasoning behind this patch. I'm not an expert at all with kwin so please tell me if I'm making invalid assumptions. That said, what I observed changing the code was consistent with what I wrote above.</p>
<p>I tried to make a video to show the flickering of turning it on for everything, but my PC apparently can't record my screen. Still, it might make the concept a bit more clear:<br />
<a href="https://phabricator.kde.org/F8112825" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F8112825: blurproblem.gif</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27439">https://phabricator.kde.org/D27439</a></div></div><br /><div><strong>To: </strong>niccolove, KWin, zzag, davidedmundson<br /><strong>Cc: </strong>davidedmundson, ngraham, kwin, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>