Print XCB event ID if error occurs

Makes it much easier to debug from error messages.
This commit is contained in:
patrick96 2022-03-20 19:11:30 +01:00 committed by Patrick Ziegler
parent b8a7b6a605
commit f77a725751

View File

@ -178,7 +178,8 @@ void controller::conn_cb() {
m_log.err("X connection error, terminating... (what: %s)", m_connection.error_str(err.code())); m_log.err("X connection error, terminating... (what: %s)", m_connection.error_str(err.code()));
stop(false); stop(false);
} catch (const exception& err) { } catch (const exception& err) {
m_log.err("Error in X event loop: %s", err.what()); // IDs for events are defined in xproto.h
m_log.err("Error in X event loop while handling event %d: %s", evt->response_type, err.what());
stop(false); stop(false);
} }
} }