<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added projects: Plasma on Wayland, Frameworks.<br />Restricted Application edited projects, added Plasma; removed Plasma on Wayland.
</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/D6047" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>To move forward faster I thought we could start reviewing the davidedmundson/xdgv6 branch for the top level<br />
whilst I continue the Popup stuff in a new branch.</p>

<p>Commits are made by both me and Marco. <br />
He did pings + min/max sizes I did most most the rest.</p>

<p>The main clever part that's not just boring boiler plate is how we handle the structure change<br />
A surface now has an XDGSurface which then has a an Xdg TopLevel or a Xdg Popup</p>

<p>We need to fit this into the public API which assumes a surface has a Surface or a Popup.<br />
The old Surface is similar to the new TopLevel.</p>

<p>The shoehorning works by relying on the fact that a surface without a role is pretty useless.</p>

<p>Clients create the surface implicitly with the toplevel or implicitly with the popup.<br />
The server only announced it has a new "XdgSurface" when it gets a new zxdg_surface_get_toplevel.</p>

<p>Don't write comments about popup code not being implemented...</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Current test still passes.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R127 KWayland</div></div></div><br /><div><strong>BRANCH</strong><div><div>davidedmundson/xdgv6</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6047" rel="noreferrer">https://phabricator.kde.org/D6047</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/client/test_xdg_shell_v6.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, Frameworks, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>