mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 16:02:46 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user