[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.
icc-effect-5.14.5
Martin Gräßlin 2015-04-21 09:21:49 +02:00
parent 0c823754ff
commit 8ec3f55ff4
1 changed files with 5 additions and 0 deletions

View File

@ -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];
}