use xcb_connection_has_error to check for failue
xcb_connectxx() always returns a non-NULL pointer to a xcb_connection_t, even on failure.
(cherry picked from commit c5185611)
Co-authored-by: Xiao YaoBing xiaoyaobing@uniontech.com
xcb_connectxx() always returns a non-NULL pointer to a xcb_connection_t, even on failure.
(cherry picked from commit c5185611)
Co-authored-by: Xiao YaoBing xiaoyaobing@uniontech.com