forked from enlightenment/expedite
better error management when a connection is created
SVN revision: 45110
This commit is contained in:
parent
57a31327a6
commit
ac88e43aa6
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue