<table><tr><td style="">davidedmundson 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/D6569" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>I don't think this is necessary.</p>

<p>The only times we want need to delete the connection ourselves is when client code is creating it via ConnectionThread::fromApplication. If they create it themselves, we don't want to, and there's no need to track it.</p>

<p>For the one instance in the bug you're fixing we have the ConnectionThread object already in kwin as it's in kwin's own QPA.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R127 KWayland</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6569" rel="noreferrer">https://phabricator.kde.org/D6569</a></div></div><br /><div><strong>To: </strong>graesslin, Frameworks, Plasma, KWin<br /><strong>Cc: </strong>davidedmundson, dfaure, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, eliasp, sebas, apol, mart, hein, lukas<br /></div>