<table><tr><td style="">tcanabrava created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />tcanabrava 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/D26986">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch tries - and fails - to fix the flicker of screens while<br />
the kscreenlocker_greeter is active. The reasoning of the patch is<br />
simple:</p>

<p>instead of deleting the overlays in the vector untill we have as<br />
many overlays as screens, we check if a overlay belongs to a screen<br />
that's currently plugged in, deleting only those that don't have<br />
a screen anymore.</p>

<p>and then, instead of going thru all of the views and updating the<br />
geometry and position, we only set that once for each overlay created.</p>

<p>This is not by all means something that I want to merge, as currently<br />
is broken, but given the current implementation is also broken I think<br />
it's safe to assume a 'v1' so we can discuss what's wrong on both<br />
implementations.</p>

<p>To test the bug: plug two monitors, run the locker, detach and reattach<br />
the monitors. on detaching (but not reattaching) the monitor will flicker<br />
and display the contents of what's behind the locked screen.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R133 KScreenLocker</div></div></div><br /><div><strong>BRANCH</strong><div><div>wip_fix_screenlocker_detach_reattach</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26986">https://phabricator.kde.org/D26986</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>greeter/greeterapp.cpp</div></div></div><br /><div><strong>To: </strong>tcanabrava<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>