DSWaylandClient *client = reinterpret_cast<ClientDestroyListener *>(listener)->parent;
if (client != nullptr)
{
- DSLOG_INF("DSWaylandClientPrivate", "Client is going to be destoryed ! (pid:%d, uid:%d, gid:%d)",
+ DSLOG_INF("DSWaylandClientPrivate", "Client is going to be destroyed ! (pid:%d, uid:%d, gid:%d)",
client->pid(), client->uid(), client->gid());
delete client;
priv->m_clientDestroyListener.notify = DSWaylandClientPrivate::client_destroy_callback;
wl_client_add_destroy_listener(wlClient, &priv->m_clientDestroyListener);
- //compositor->addClient(this);
+ compositor->addClient(this);
}
else
{
DSLOG_ERR("DSWaylandClient", "wlClient is invalid.");
}
- //getCompositor()->removeClient(this);
+ getCompositor()->removeClient(this);
}
DSWaylandClient *DSWaylandClient::fromWlClient(wl_client *wlClient)