<table><tr><td style="">esjeon created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />esjeon 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/D26338">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This is an attempt to resolve bug 362857. A number of users have complained about restored application not supporting desktop effects, like transparency and blurring. This is caused by a race condition where restored applications start before KWin (and its compositor) finishes its initialization. Under this condition, applications fail to detect compositor and disable desktop effect on themselves.</p>

<p>This patch tries to avoid this race condition by inserting delay b/w initialization of KSM server, which starts KWin (or user-designated WM), and start-up phase 0. At the same time, the patch also tries to minimize the actual delay by detecting KWin and compositors using D-Bus and KWindowSystem repectively.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>The nature of this bug (graphics!) forces the use of physical machines for testing, but not every machine can reproduce this. Old hardware w/ proprietary graphics driver is recommended.</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Pre-requisite:<ol class="remarkup-list">
<li class="remarkup-list-item">"Restore previous session" option enabled under "Desktop Session".</li>
<li class="remarkup-list-item">Konsole set up w/ transparent window</li>
<li class="remarkup-list-item">Verify that the bug is reproducible on your machine (Reboot might be required)</li>
</ol></li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item">Test 1: session restores normally<ol class="remarkup-list">
<li class="remarkup-list-item">Login, open Konsole, logout, and re-login</li>
<li class="remarkup-list-item">Konsole should be restored.</li>
</ol></li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item">Test 2: KWin w/ compositor, restore w/ desktop effect.<ol class="remarkup-list">
<li class="remarkup-list-item">Login, open Konsole, reboot, and login.</li>
<li class="remarkup-list-item">Konsole should be restored w/ transparent background.</li>
</ol></li>
</ul>

<ul class="remarkup-list">
<li class="remarkup-list-item">Test 3: Other WM w/ compositor, restore w/ desktop effect.<ol class="remarkup-list">
<li class="remarkup-list-item">Put  the following into <tt style="background: #ebebeb; font-size: 13px;">~/.xinitrc</tt> (edit it to fit your env.): <tt style="background: #ebebeb; font-size: 13px;">export KDEWM=/usr/bin/dwm; picom & exec startplasma-x11</tt></li>
<li class="remarkup-list-item">From Linux console, run <tt style="background: #ebebeb; font-size: 13px;">xinit</tt>.</li>
<li class="remarkup-list-item">Konsole should be restored w/ transparent background.</li>
</ol></li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26338">https://phabricator.kde.org/D26338</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>startkde/plasma-session/CMakeLists.txt<br />
startkde/plasma-session/main.cpp<br />
startkde/plasma-session/startup.cpp<br />
startkde/plasma-session/startup.h</div></div></div><br /><div><strong>To: </strong>esjeon<br /><strong>Cc: </strong>plasma-devel, 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>