From 8ec3f55ff4cfc17dab5751df9cadabc9a4dee1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 21 Apr 2015 09:21:49 +0200 Subject: [PATCH] [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. --- wayland_server.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wayland_server.cpp b/wayland_server.cpp index 188d5b4e34..88c9b4e5c0 100644 --- a/wayland_server.cpp +++ b/wayland_server.cpp @@ -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]; }