<div>graesslin created this revision.<br />
graesslin added a reviewer: Plasma.<br />
Restricted Application added a project: Plasma.<br />
Restricted Application added a subscriber: plasma-devel.</div><br /><div><strong>REVISION SUMMARY</strong><div><p>Client uses a static Xcb::Window helper. This so far didn't get<br />
explicitly destroyed, so the application finalize cleaned it up.<br />
To destroy the window the xcb_connection_t* is used which the<br />
QGuiApplication already destroyed.</p>

<p>This change ensures that the window gets destroyed before the xcb<br />
connection gets destroyed.</p>

<p>In addition an assert is added to KWin::connection() to ensure that<br />
we still have the QGuiApplication::instance() when it's invoked.<br />
This way we'll notice if we have more cases where we call into xcb<br />
after the application went down.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>cleanup-x11</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D1573" rel="noreferrer">https://phabricator.kde.org/D1573</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>client.cpp<br />
client.h<br />
libkwineffects/kwinglobals.h<br />
workspace.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, Plasma<br /><strong>Cc: </strong>plasma-devel, sebas<br /></div>