hmm why wasnt this committed?
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 May 2009 13:27:59 +0000 (13:27 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 7 May 2009 13:27:59 +0000 (13:27 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@40535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_x/xlib/ecore_x.c

index 151c6c4..3b033e3 100644 (file)
@@ -439,7 +439,8 @@ ecore_x_init(const char *name)
    _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())
      {
@@ -473,7 +474,7 @@ _im_create_error:
        XCloseIM(im);
      }
 _im_create_end:
-
+#endif
    return _ecore_x_init_count;
 }
 
@@ -483,6 +484,8 @@ _ecore_x_shutdown(int close_display)
    _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;
@@ -491,6 +494,7 @@ _ecore_x_shutdown(int close_display)
        XCloseIM(xim);
        _ecore_x_ic = NULL;
      }
+#endif
    if (close_display)
       XCloseDisplay(_ecore_x_disp);
    else
@@ -723,8 +727,10 @@ _ecore_x_fd_handler(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__)
        
        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))
          {