Revert "waylandserver: fix race condition"

This reverts commit 03d0a226fb.

ClientConnection object is no longer destroyed with delay after merging
5246d3924f.
This commit is contained in:
Vlad Zahorodnii 2023-10-09 11:13:24 +03:00
parent 787d3a3ba4
commit 88583b8eed

View file

@ -693,9 +693,7 @@ int WaylandServer::createXWaylandConnection()
m_xwaylandConnection->setScaleOverride(kwinApp()->xwaylandScale());
connect(kwinApp(), &Application::xwaylandScaleChanged, m_xwaylandConnection, [this]() {
if (m_xwaylandConnection) {
m_xwaylandConnection->setScaleOverride(kwinApp()->xwaylandScale());
}
m_xwaylandConnection->setScaleOverride(kwinApp()->xwaylandScale());
});
return socket.fd;