Commit 8ec3f55f authored by Martin Flöser's avatar Martin Flöser

[wayland] Abort if Xwayland connection breaks

If Xwayland goes down it's better to abort than staying alive. If
Xwayland goes down the next roundtrip to X (most likely during call
to xStackingOrder) will just freeze completely, which is kind of the
worst as one cannot VT-switch anymore. So a clean abort is a bad but
better solution.
parent 0c823754
......@@ -102,6 +102,11 @@ int WaylandServer::createXWaylandConnection()
return -1;
}
m_xwaylandConnection = m_display->createClient(sx[0]);
connect(m_xwaylandConnection, &KWayland::Server::ClientConnection::disconnected, this,
[] {
qFatal("Xwayland Connection died");
}
);
return sx[1];
}
......
Markdown is supported
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