xcb: call qGuiApp->exit() on xcb connection error
Fixes: QTBUG-130741 Pick-to: 6.8 6.5 Change-Id: I67eff8e58d4a4a8d18fb49699111f72ed9100480 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit facf2c17707ac4827e624fb6e9546278aef0c38d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
7a2b93fc78
commit
b33813534e
@ -1067,7 +1067,8 @@ void QXcbConnection::processXcbEvents(QEventLoop::ProcessEventsFlags flags)
|
||||
int connection_error = xcb_connection_has_error(xcb_connection());
|
||||
if (connection_error) {
|
||||
qWarning("The X11 connection broke (error %d). Did the X11 server die?", connection_error);
|
||||
exit(1);
|
||||
qGuiApp->exit(connection_error);
|
||||
return;
|
||||
}
|
||||
|
||||
m_eventQueue->flushBufferedEvents();
|
||||
|
Loading…
x
Reference in New Issue
Block a user