<table><tr><td style="">vitaliyf 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/D21076">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/D21076#676555" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D21076#676555</a>, <a href="https://phabricator.kde.org/p/rjvbb/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@rjvbb</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>As I understand 3rdparty binary effects are harder to install, very unpopular and it will take 100 years to get it packaged in all distros...</p></blockquote>
<p>It should be possible to package this as an add-on desktop effect that people can install at will:<br />
<a href="https://phabricator.kde.org/F9381278" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F9381278: image.png</a></p></div>
</blockquote>
<p>Is it? How does it work? It definitely requires distribution of a binary addon. Does KDE installer build binary addons?</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>My guess would be that the greyscale effect has very similar requirements (it's basically a hardwired colour correction profile, no?)</p></blockquote>
<p>As I understand grayscale effect is built into KWin and all the 3rdparty addon has to do is to enable it via JS code, which is not the case with ICC.</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Your fix seems to work, but I continue to get annoying update glitches, mostly when switching between virtual desktops (for which I don't use any transition effects):<br />
<a href="https://phabricator.kde.org/F9381344" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F9381344: image.png</a><br />
I get them too (but much less severe) in xfwm4 (4.12.x) with composition enabled so this may be a manifestation of the apparently shitty Intel i915 driver (on this machine I have to stick to the 4.14 kernel because later versions tend to hang the GPU >:( )</p></blockquote>
<p>I get similar glitches too. They don't reproduce always, but I feel they tend to "accumulate" over time. Sometimes I just restart kwin with <tt style="background: #ebebeb; font-size: 13px;">kwin --replace</tt>...<br />
Problem is that I have little to no knowledge about OpenGL and kwin rendering pipeline, so the code is mostly written by guess :)<br />
The whole idea is to generate a texture and run pixels through it. I use GL_TEXTURE3...<br />
I'd appreciate if you could give me some advice on how I should deal with that texture. Maybe I bind it incorrectly or maybe I don't clear some bindings or maybe something else...?</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>But kWin also causes an update issue in Konsole when compositing is enabled, where the last line shows the previous command instead of the prompt. I do have a dynamic shell prompt set up that echoes the last command I executed whenever I hit Enter</p></blockquote>
<p>I had this problem at some point and I don't remember how exactly I solved it. I remember that it definitely wasn't caused just by my effect though.</p>
<p>One recent thing that I remember is Mesa 20 switching to the Intel "iris" driver by default which is still buggy and leads to all kinds of glitches with KWin. Try to switch to the older stable driver by adding MESA_LOADER_DRIVER_OVERRIDE=i965 to /etc/environment ...</p></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21076">https://phabricator.kde.org/D21076</a></div></div><br /><div><strong>To: </strong>vitaliyf, zzag, rjvbb<br /><strong>Cc: </strong>knechtges, rjvbb, graesslin, davidedmundson, zzag, ngraham, kwin, Orage, cacarry, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>