<table><tr><td style="">mart created this revision.<br />Restricted Application added a project: KWin.<br />Restricted Application added subscribers: KWin, kwin, plasma-devel.
</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/D4989" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>when some effects like maximize or translucency are<br />
disabled, less repaints happen and especially when<br />
using aurorae it's possible to trigger some repaint bugs:<br />
if you maximize a window then quickly unmaximize it<br />
by dragging the decoration away, sometimes a piece of the<br />
old decoration (seems only the shadow part) remains on screen</p>

<p>this extra addLayerRepaint seems to make the problem<br />
harder to reproduce, even tough sometimes still happens</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>maximizing and unmaximizing the window many times seems to<br />
leave graphics behind almost never now (unfortunately, almost<br />
so there is still something broken somewhere)<br />
the reason aurorae seems to trigger it a lot, is that a<br />
setShadow happens during the repaint, that is triggered by a timer.<br />
if like in oxygen i do a setshadow only connected to the signal<br />
KDecoration2::DecoratedClient::activeChanged the problem<br />
does not seem to happen, but of course that happens too soon<br />
and the graphics is still wrong.<br />
another possibly related bug, that seems harder to reproduce<br />
is in <a href="https://www.youtube.com/watch?v=IfbHVApLbyg&feature=youtu.be&t=79" class="remarkup-link" target="_blank" rel="noreferrer">https://www.youtube.com/watch?v=IfbHVApLbyg&feature=youtu.be&t=79</a><br />
(moving the window, a piece of shadow stays there)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>phab/auroraerepaint</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4989" rel="noreferrer">https://phabricator.kde.org/D4989</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>toplevel.cpp</div></div></div><br /><div><strong>To: </strong>mart, Plasma, graesslin<br /><strong>Cc: </strong>plasma-devel, kwin, KWin, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol<br /></div>