<table><tr><td style="">romangg created this revision.<br />romangg added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />romangg requested review of this revision.
</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/D26090">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When the compositor is stopped there might still be a buffer swap ongoing, in<br />
particular when a client blocks compositing on X11.</p>
<p>Depending on the backend the next buffer swap event might be handled in<br />
bufferSwapComplete (Wayland) or not be handled (X11 GLX, since a new<br />
GLX window will be created while the swap event is sent for the old one).</p>
<p>With this patch the buffer swap state is reset on stop such that on later<br />
start no outdated data might create errors and instead a new repaint can be<br />
triggered with updated data.</p>
<p>BUG: 415262</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Manually on X11 and Wayland.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-compositor-stop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26090">https://phabricator.kde.org/D26090</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>composite.cpp</div></div></div><br /><div><strong>To: </strong>romangg, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>