moved onError() method to IScreenReceiver from IPrimaryScreenReceiver.

also implemented onError in CClient which previously did not have
any way to handle display disconnection.
This commit is contained in:
crs
2002-07-16 16:52:26 +00:00
parent 0bfe12d6ab
commit 7c391a0f35
26 changed files with 114 additions and 98 deletions

View File

@@ -656,7 +656,7 @@ CXWindowsScreen::ioErrorHandler(Display*)
// so we set it to NULL), and exit.
log((CLOG_WARN "X display has unexpectedly disconnected"));
s_screen->m_display = NULL;
s_screen->m_eventHandler->onError();
s_screen->m_receiver->onError();
log((CLOG_CRIT "quiting due to X display disconnection"));
exit(17);
}