call XInitThreads only when Xlib code is used

SVN revision: 49170
This commit is contained in:
Vincent Torri 2010-05-23 23:23:51 +00:00
parent 1216d02d7f
commit b76ead2616
1 changed files with 3 additions and 0 deletions

View File

@ -1357,7 +1357,10 @@ int
main(int argc, char **argv)
{
int i;
#if defined (HAVE_EVAS_SOFTWARE_XLIB) || defined (HAVE_EVAS_XRENDER_X11) ||defined (HAVE_EVAS_OPENGL_X11) || defined (HAVE_EVAS_SOFTWARE_16_X11)
XInitThreads();
#endif
evas_init();
evas = evas_new();