mirror of
https://github.com/polybar/polybar.git
synced 2026-02-19 14:35:47 +00:00
fix: Terminate on X connection error
This commit is contained in:
@ -302,7 +302,8 @@ void controller::wait_for_xevent() {
|
||||
int error = 0;
|
||||
|
||||
if ((error = m_connection.connection_has_error()) != 0) {
|
||||
m_log.err("Error in X event loop, aborting... (%s)", m_connection.error_str(error));
|
||||
m_log.err("Error in X event loop, terminating... (%s)", m_connection.error_str(error));
|
||||
kill(getpid(), SIGTERM);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user