DSWaylandClient: call add/remove a client to the DSWaylandCompositor 16/241616/1
authorSung-Jin Park <sj76.park@samsung.com>
Mon, 13 Jul 2020 12:57:39 +0000 (21:57 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 09:53:46 +0000 (18:53 +0900)
Change-Id: I58504a40cd06cda0a68af748ce26f37596b6cd57
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/DSWaylandServer/DSWaylandClient.cpp

index 76c3445..b1cf991 100644 (file)
@@ -31,7 +31,7 @@ void DSWaylandClientPrivate::client_destroy_callback(struct ::wl_listener *liste
        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;
@@ -62,7 +62,7 @@ DSWaylandClient::DSWaylandClient(DSWaylandCompositor *compositor, struct ::wl_cl
                priv->m_clientDestroyListener.notify = DSWaylandClientPrivate::client_destroy_callback;
                wl_client_add_destroy_listener(wlClient, &priv->m_clientDestroyListener);
 
-               //compositor->addClient(this);
+               compositor->addClient(this);
        }
        else
        {
@@ -88,7 +88,7 @@ DSWaylandClient::~DSWaylandClient()
                DSLOG_ERR("DSWaylandClient", "wlClient is invalid.");
        }
 
-       //getCompositor()->removeClient(this);
+       getCompositor()->removeClient(this);
 }
 
 DSWaylandClient *DSWaylandClient::fromWlClient(wl_client *wlClient)