[wayland] Don't set surface on Toplevel for non Xwayland-Clients

For other clients we are only interested in the shell surfaces.
This commit is contained in:
Martin Gräßlin 2015-04-30 09:23:27 +02:00
parent 28d314a487
commit 8d3ee65269

View file

@ -70,6 +70,10 @@ void WaylandServer::init(const QByteArray &socketName)
// it's possible that a Surface gets created before Workspace is created
return;
}
if (surface->client() != xWaylandConnection()) {
// setting surface is only relevat for Xwayland clients
return;
}
auto check = [surface] (const Toplevel *t) {
return t->surfaceId() == surface->id();
};