ecore_x/xcb: Fix broken init count in ecore_x_init
authordottedmag <dottedmag@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 14 Jan 2010 05:10:26 +0000 (05:10 +0000)
committerdottedmag <dottedmag@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 14 Jan 2010 05:10:26 +0000 (05:10 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@45109 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xcb/ecore_xcb.c

index 68a2866..7f1a63e 100644 (file)
@@ -194,7 +194,7 @@ ecore_x_init(const char *name)
 
    xcb_intern_atom_cookie_t           atom_cookies[ECORE_X_ATOMS_COUNT];
 
-   if (--_ecore_xcb_init_count != 1)
+   if (++_ecore_xcb_init_count != 1)
      return _ecore_xcb_init_count;
    _ecore_x11xcb_log_dom = eina_log_domain_register("EcoreXCB", ECORE_XLIB_XCB_DEFAULT_LOG_COLOR);
    if(_ecore_x11xcb_log_dom < 0)