call XInitThreads only when Xlib code is used
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 23 May 2010 23:23:51 +0000 (23:23 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 23 May 2010 23:23:51 +0000 (23:23 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/expedite@49170 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/main.c

index 2b9158a..c3c4923 100644 (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();