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

For other clients we are only interested in the shell surfaces.
remotes/origin/Plasma/5.4
Martin Gräßlin 11 years ago
parent 28d314a487
commit 8d3ee65269
  1. 4
      wayland_server.cpp

@ -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();
};

Loading…
Cancel
Save