<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: Frameworks, KWin, Flatpak.<br />Restricted Application added a subscriber: plasma-devel.<br />Restricted Application added projects: Plasma on Wayland, Frameworks.
</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/D8250" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>There are also QPA's which are "wayland" but have a different name. An<br />
example is flatpak. Any code using KWayland::Client is basically<br />
disabled on this platform due to the incorrect checks for the platform<br />
name.</p>

<p>If we run on a platform which provides wl_display through the native<br />
interface we should be able to assume that it truly is Wayland and that<br />
it speaks wayland. Similar for all the other checks. The only<br />
problematic code might be the check in Surface, but on the other hand we<br />
can assume that code using Surface::fromWindow has also created a<br />
ConnectionThread and thus knows whether it's Wayland or not.</p>

<p>This fixes the Plasma integration for flatpak.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Flatpak windows have decorations in Plasma now.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R127 KWayland</div></div></div><br /><div><strong>BRANCH</strong><div><div>drop-platform-check</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8250" rel="noreferrer">https://phabricator.kde.org/D8250</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/client/compositor.cpp<br />
src/client/connection_thread.cpp<br />
src/client/shell.cpp<br />
src/client/surface.cpp</div></div></div><br /><div><strong>To: </strong>graesslin, Frameworks, KWin, Flatpak<br /><strong>Cc: </strong>plasma-devel, leezu, ZrenBot, alexeymin, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, eliasp, sebas, apol, mart, hein<br /></div>