<table><tr><td style="">davidedmundson 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/D5723" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When the Qt QPA closes it deletes the wl_display<br />
deleting wl_display deletes the wl_registry<br />
when we destroy the kwayland wrapper we double delete<br />
as the windowsystem integration is a singleton we're not deleted till<br />
after qApp.</p>

<p>By manually releasing the wayland parts early we avoid that problem,<br />
whilst still being safe if any app did make a KWindowSystem call during<br />
shutdown.</p>

<p>BUG: 374665</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Locked screen, no longer crashed when typing in password<br />
Opened system settings, created a blurred tooltip then closed. No longer crashed</p>

<p>Making a unit test that runs during qApp shutdown will be incredibly difficult.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R130 Frameworks integration plugin using KWayland</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5723" rel="noreferrer">https://phabricator.kde.org/D5723</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/windowsystem/waylandintegration.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, spstarr, progwolff, Zren, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, lukas<br /></div>