<table><tr><td style="">graesslin created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: 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/D6572" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>KWin has a problem that breeze crashes it on tear down if the shadow was<br />
created. This is due to breeze destroying the Wayland connection after<br />
KWin destroyed it which triggers a crash in libwayland.</p>

<p><a href="https://phabricator.kde.org/D6571" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">D6571</a> addresses this problem by deleting the ConnectionThread created by<br />
plugins prior to destroying the Wayland server.</p>

<p>By changing the ownership of the registry and the interfaces to be<br />
children and grandchildren of the ConnectionThread we can ensure that<br />
KWin can clean up this area properly. For non KWin cases this doesn't<br />
change anything, everything is still deleted as a child of ShadowHelper.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ensured that the Registry gets deleted before KWin's own connection</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R31 Breeze</div></div></div><br /><div><strong>BRANCH</strong><div><div>wayland-shadow-parent</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6572" rel="noreferrer">https://phabricator.kde.org/D6572</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstyle/breezeshadowhelper.cpp<br />
kstyle/breezeshadowhelper.h</div></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>