Commit 933f810a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Introduce ClientConnection::aboutToBeDestroyed

This signal is useful if the compositor wants to perform some cleanup
before the disconnected signal is emitted or while the connection object
still has valid wl_client native handle.
parent 1ec4f268
Pipeline #61719 passed with stage
in 6 minutes and 16 seconds
......@@ -68,6 +68,7 @@ void ClientConnectionPrivate::destroyListenerCallback(wl_listener *listener, voi
Q_ASSERT(it != s_allClients.constEnd());
auto p = (*it);
auto q = p->q;
emit q->aboutToBeDestroyed();
p->client = nullptr;
emit q->disconnected(q);
......@@ -123,6 +123,10 @@ public:
void destroy();
* This signal is emitted when the client is about to be destroyed.
void aboutToBeDestroyed();
* Signal emitted when the ClientConnection got disconnected from the server.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment