<div>graesslin created this revision.<br />
graesslin added reviewers: bshah, broulik.<br />
Herald added a project: Plasma.<br />
Herald added a subscriber: plasma-devel.</div><br /><div><strong>REVISION SUMMARY</strong><div><p>KScreenLocker checks whether power management is inhibited on idle<br />
time out. So far this used a sync and blocking dbus call.</p>

<p>This change makes the check async. KScreenLocker connects to the<br />
InhibitionsChanged signal provided by powerdevil and queries the<br />
current state in an async way each time the signal gets emitted.</p>

<p>When KScreenLocker hits an idle connection it has the knowledge wheter<br />
power management is inhibited and does not need to perform the blocking<br />
call any more.</p>

<p>It's important for KScreenLocker to not have blocking calls as it's<br />
used inside the Wayland compositor and can by that easily create<br />
dead-lock situations (e.g. PowerDevil waiting for the Wayland compositor<br />
and the compositor waiting for the reply).</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKSCREENLOCKER KScreenLocker</div></div></div><br /><div><strong>BRANCH</strong><div><div>async-check-fdo-inhibition</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D884" rel="noreferrer">https://phabricator.kde.org/D884</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
ksldapp.cpp<br />
ksldapp.h<br />
powermanagement_inhibition.cpp<br />
powermanagement_inhibition.h</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, bshah, broulik<br /><strong>Cc: </strong>plasma-devel<br /></div>