aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2002-10-05 14:38:51 +0000
committerDave Love2002-10-05 14:38:51 +0000
commitaf1b7625c33db14eea5b9d8b37b0d03871d00425 (patch)
tree433a7c17ddb66910563b3ac3272a8f4b78eff630 /src
parent2f0d2c359091dc232b7589701221e194b9dc05ed (diff)
downloademacs-af1b7625c33db14eea5b9d8b37b0d03871d00425.tar.gz
emacs-af1b7625c33db14eea5b9d8b37b0d03871d00425.zip
(x_window, x_window): Use use_xim.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 64df09d02f4..b8cdf14dfde 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -3431,7 +3431,7 @@ static XFontSet xic_create_xfontset P_ ((struct frame *, char *));
3431static XIMStyle best_xim_style P_ ((XIMStyles *, XIMStyles *)); 3431static XIMStyle best_xim_style P_ ((XIMStyles *, XIMStyles *));
3432 3432
3433 3433
3434/* Supported XIM styles, ordered by preferenc. */ 3434/* Supported XIM styles, ordered by preference. */
3435 3435
3436static XIMStyle supported_xim_styles[] = 3436static XIMStyle supported_xim_styles[] =
3437{ 3437{
@@ -3887,9 +3887,8 @@ x_window (f, window_prompting, minibuffer_only)
3887 3887
3888#ifdef HAVE_X_I18N 3888#ifdef HAVE_X_I18N
3889 FRAME_XIC (f) = NULL; 3889 FRAME_XIC (f) = NULL;
3890#ifdef USE_XIM 3890 if (use_xim)
3891 create_frame_xic (f); 3891 create_frame_xic (f);
3892#endif
3893#endif 3892#endif
3894 3893
3895 f->output_data.x->wm_hints.input = True; 3894 f->output_data.x->wm_hints.input = True;
@@ -3992,19 +3991,20 @@ x_window (f)
3992 attribute_mask, &attributes); 3991 attribute_mask, &attributes);
3993 3992
3994#ifdef HAVE_X_I18N 3993#ifdef HAVE_X_I18N
3995#ifdef USE_XIM 3994 if use_xim
3996 create_frame_xic (f);
3997 if (FRAME_XIC (f))
3998 { 3995 {
3999 /* XIM server might require some X events. */ 3996 create_frame_xic (f);
4000 unsigned long fevent = NoEventMask; 3997 if (FRAME_XIC (f))
4001 XGetICValues(FRAME_XIC (f), XNFilterEvents, &fevent, NULL); 3998 {
4002 attributes.event_mask |= fevent; 3999 /* XIM server might require some X events. */
4003 attribute_mask = CWEventMask; 4000 unsigned long fevent = NoEventMask;
4004 XChangeWindowAttributes (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 4001 XGetICValues(FRAME_XIC (f), XNFilterEvents, &fevent, NULL);
4005 attribute_mask, &attributes); 4002 attributes.event_mask |= fevent;
4003 attribute_mask = CWEventMask;
4004 XChangeWindowAttributes (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
4005 attribute_mask, &attributes);
4006 }
4006 } 4007 }
4007#endif
4008#endif /* HAVE_X_I18N */ 4008#endif /* HAVE_X_I18N */
4009 4009
4010 validate_x_resource_name (); 4010 validate_x_resource_name ();