<table><tr><td style="">kmaterka created this revision.<br />kmaterka added reviewers: Plasma: Workspaces, Plasma, davidedmundson.<br />kmaterka added a project: Plasma.<br />kmaterka 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/D25603">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>For each tray icon XEmbedSNIProxy is creating container window 32x32 in size. It is black with opaque set to 0 (fully transparent when compositor is enabled). All of these container windows are stacked below all windows, so normally you can't see them. On creation all container windows are created in top-left corner. When user clicks on the tray icon, container window is moved to the click location (to handle events correctly).<br />
On KWin restart all windows are shuffled, usually KWin is able to restore ordering correctly, but for some reason not it this case. As a result black/transparent container windows are stacked above all other windows and panels.<br />
To solve that, on KWin restart, XembedSNIProxy needs to iterate over all known container windows and stack them below again.</p>
<p>BUG: 357443</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">[Optional] Disable compositor - with disable container window is</li>
</ol>
<p>black and easier to spot</p>
<ol class="remarkup-list" start="2">
<li class="remarkup-list-item">Run applcaiton with XEmbed system tray icon, do not click on the icon</li>
<li class="remarkup-list-item">Restart KWin</li>
</ol>
<p>a) Before: black/transparent rectangle in the top-left corner, reacts to<br />
mouse click<br />
b) After: no rectangle, mouse clicks work as expected</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25603">https://phabricator.kde.org/D25603</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>xembed-sni-proxy/fdoselectionmanager.cpp<br />
xembed-sni-proxy/sniproxy.cpp<br />
xembed-sni-proxy/sniproxy.h</div></div></div><br /><div><strong>To: </strong>kmaterka, Plasma: Workspaces, Plasma, davidedmundson<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>