better error management when a connection is created

SVN revision: 45110
This commit is contained in:
Vincent Torri 2010-01-14 07:30:06 +00:00
parent 57a31327a6
commit ac88e43aa6
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ engine_software_xcb_args(int argc, char **argv)
if (!ok) return 0;
conn = xcb_connect(NULL, &s);
if (!conn) return 0;
if (xcb_connection_has_error(conn)) return 0;
s_tmp = s;
iter = xcb_setup_roots_iterator(xcb_get_setup(conn));

View File

@ -95,7 +95,7 @@ engine_xrender_xcb_args(int argc, char **argv)
if (!ok) return 0;
conn = xcb_connect(NULL, &s);
if (!conn) return 0;
if (xcb_connection_has_error(conn)) return 0;
s_tmp = s;
iter = xcb_setup_roots_iterator(xcb_get_setup(conn));