_ecore_x_init_count++;
_ecore_x_private_win = ecore_x_window_override_new(0, -77, -777, 123, 456);
-
+
+#ifdef ENABLE_XIM
/* Setup XIM */
if (!_ecore_x_ic && XSupportsLocale())
{
XCloseIM(im);
}
_im_create_end:
-
+#endif
return _ecore_x_init_count;
}
_ecore_x_init_count--;
if (_ecore_x_init_count > 0) return _ecore_x_init_count;
if (!_ecore_x_disp) return _ecore_x_init_count;
+
+#ifdef ENABLE_XIM
if (_ecore_x_ic)
{
XIM xim;
XCloseIM(xim);
_ecore_x_ic = NULL;
}
+#endif
if (close_display)
XCloseDisplay(_ecore_x_disp);
else
XNextEvent(d, &ev);
+#ifdef ENABLE_XIM
/* Filter event for XIM */
if (XFilterEvent(&ev, ev.xkey.window)) continue;
+#endif
if ((ev.type >= 0) && (ev.type < _ecore_x_event_handlers_num))
{