<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: KWin.<br />Herald added a project: KWin.<br />Herald added a subscriber: kwin.<br />davidedmundson 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/D24862">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently kwin opens a second ICE connection to ksmserver in order to<br />
tell the state of kwin's whether we're logging out and saving clients or<br />
not.</p>

<p>This requires that kwin launches after ksmserver to have the connection<br />
which is a dependency I want to break.</p>

<p>Practically this code is already ksmserver specific as it relies on some<br />
custom code that sends the first saveState request to kwin first.</p>

<p>Instead we can replace it with a bespoke IPC over DBus and siplify the<br />
code both end. This will allow several other future enhancements that we<br />
want with regards to handling the session state, as well as make an<br />
effort platform agnostic session management, as well as cleaning up some<br />
complex code.</p>

<p>Ksmserver calls into kwin, rather than having kwin watch ksmserver state<br />
to allow us make sure it's race free.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24862">https://phabricator.kde.org/D24862</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
activation.cpp<br />
libkwineffects/kwinglobals.h<br />
main_x11.cpp<br />
org.kde.KWin.Session.xml<br />
sm.cpp<br />
sm.h<br />
workspace.cpp<br />
workspace.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, KWin<br /><strong>Cc: </strong>kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, 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>