diff --git a/src/xcb_io.c b/src/xcb_io.c index d800a8e1..fd33f438 100644 --- a/src/xcb_io.c +++ b/src/xcb_io.c @@ -32,8 +32,12 @@ #define throw_thread_fail_assert(_message, _var) { \ fprintf(stderr, "[xcb] " _message "\n"); \ - fprintf(stderr, "[xcb] Most likely this is a multi-threaded client " \ - "and XInitThreads has not been called\n"); \ + if (_Xglobal_lock) { \ + fprintf(stderr, "[xcb] You called XInitThreads, this is not your fault\n"); \ + } else { \ + fprintf(stderr, "[xcb] Most likely this is a multi-threaded client " \ + "and XInitThreads has not been called\n"); \ + } \ xcb_fail_assert(_message, _var); \ }