aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-06-26 15:39:55 +0000
committerGerd Moellmann2000-06-26 15:39:55 +0000
commit287f7dd64fd5b0d0531eb08565c4f76c6552698b (patch)
treec3029c2e7febcfbafd9df63cc13c0fc664c37627 /src
parent4bd777b8571418cb0b34aeaf258e07c722cf85da (diff)
downloademacs-287f7dd64fd5b0d0531eb08565c4f76c6552698b.tar.gz
emacs-287f7dd64fd5b0d0531eb08565c4f76c6552698b.zip
(xim_initialize) [!USE_XIM]: Don't set up the
display info for XIM. (xim_open_dpy): Likewise. (xim_close_dpy): Don't free the display info's XIM.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 17aacf03ff7..96e3e97a3fd 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11094,6 +11094,7 @@ xim_open_dpy (dpyinfo, resource_name)
11094 struct x_display_info *dpyinfo; 11094 struct x_display_info *dpyinfo;
11095 char *resource_name; 11095 char *resource_name;
11096{ 11096{
11097#ifdef USE_XIM
11097 XIM xim; 11098 XIM xim;
11098 11099
11099 xim = XOpenIM (dpyinfo->display, dpyinfo->xrdb, resource_name, EMACS_CLASS); 11100 xim = XOpenIM (dpyinfo->display, dpyinfo->xrdb, resource_name, EMACS_CLASS);
@@ -11115,6 +11116,10 @@ xim_open_dpy (dpyinfo, resource_name)
11115 XSetIMValues (xim, XNDestroyCallback, &destroy, NULL); 11116 XSetIMValues (xim, XNDestroyCallback, &destroy, NULL);
11116#endif 11117#endif
11117 } 11118 }
11119
11120#else /* not USE_XIM */
11121 dpyinfo->xim = NULL;
11122#endif /* not USE_XIM */
11118} 11123}
11119 11124
11120 11125
@@ -11188,6 +11193,7 @@ xim_initialize (dpyinfo, resource_name)
11188 struct x_display_info *dpyinfo; 11193 struct x_display_info *dpyinfo;
11189 char *resource_name; 11194 char *resource_name;
11190{ 11195{
11196#ifdef USE_XIM
11191#ifdef HAVE_X11R6_XIM 11197#ifdef HAVE_X11R6_XIM
11192 struct xim_inst_t *xim_inst; 11198 struct xim_inst_t *xim_inst;
11193 int len; 11199 int len;
@@ -11209,6 +11215,10 @@ xim_initialize (dpyinfo, resource_name)
11209 dpyinfo->xim = NULL; 11215 dpyinfo->xim = NULL;
11210 xim_open_dpy (dpyinfo, resource_name); 11216 xim_open_dpy (dpyinfo, resource_name);
11211#endif /* not HAVE_X11R6_XIM */ 11217#endif /* not HAVE_X11R6_XIM */
11218
11219#else /* not USE_XIM */
11220 dpyinfo->xim = NULL;
11221#endif /* not USE_XIM */
11212} 11222}
11213 11223
11214 11224
@@ -11218,6 +11228,7 @@ static void
11218xim_close_dpy (dpyinfo) 11228xim_close_dpy (dpyinfo)
11219 struct x_display_info *dpyinfo; 11229 struct x_display_info *dpyinfo;
11220{ 11230{
11231#ifdef USE_XIM
11221#ifdef HAVE_X11R6_XIM 11232#ifdef HAVE_X11R6_XIM
11222 XUnregisterIMInstantiateCallback (dpyinfo->display, dpyinfo->xrdb, 11233 XUnregisterIMInstantiateCallback (dpyinfo->display, dpyinfo->xrdb,
11223 NULL, EMACS_CLASS, 11234 NULL, EMACS_CLASS,
@@ -11226,6 +11237,7 @@ xim_close_dpy (dpyinfo)
11226 XCloseIM (dpyinfo->xim); 11237 XCloseIM (dpyinfo->xim);
11227 dpyinfo->xim = NULL; 11238 dpyinfo->xim = NULL;
11228 XFree (dpyinfo->xim_styles); 11239 XFree (dpyinfo->xim_styles);
11240#endif /* USE_XIM */
11229} 11241}
11230 11242
11231#endif /* not HAVE_X11R6_XIM */ 11243#endif /* not HAVE_X11R6_XIM */