*** empty log message ***
authorroot <root>
Sat, 11 Feb 2006 10:53:37 +0000 (10:53 +0000)
committerroot <root>
Sat, 11 Feb 2006 10:53:37 +0000 (10:53 +0000)
src/command.C
src/main.C
src/rxvt.h

index 430b7927f2d83743e765c1c13fa3ddd1ee61ec35..9c6d7046a0ac69b9553b3571a103be3549e09fa8 100644 (file)
@@ -1721,7 +1721,7 @@ rxvt_term::focus_in ()
 #if USE_XIM
       if (Input_Context != NULL)
         {
-          IMSetStatusPosition ();
+          IMSetPosition ();
           XSetICFocus (Input_Context);
         }
 #endif
index e0adece7da7f3bcc17dc5b2700c25e1d15fb1807..e309fd02f189875b63fca466c7a1a0ae7d4fc5f9 100644 (file)
@@ -1121,7 +1121,7 @@ rxvt_term::resize_all_windows (unsigned int newwidth, unsigned int newheight, in
 #endif
 
 #ifdef USE_XIM
-  IMSetStatusPosition ();
+  IMSetPosition ();
 #endif
 }
 
@@ -1528,8 +1528,8 @@ foundpet:
                              status_attr, NULL);
 
   if (preedit_attr) XFree (preedit_attr);
-  if (status_attr) XFree (status_attr);
-  if (fs) XFreeFontSet (dpy, fs);
+  if (status_attr)  XFree (status_attr);
+  if (fs)           XFreeFontSet (dpy, fs);
 
   if (Input_Context == NULL)
     {
@@ -1544,8 +1544,7 @@ foundpet:
     vt_select_input ();
 #endif
 
-  if (input_style & XIMPreeditArea)
-    IMSetStatusPosition ();
+  IMSetPosition ();
 
   return true;
 }
@@ -1613,14 +1612,14 @@ done:
 }
 
 void
-rxvt_term::IMSetStatusPosition ()
+rxvt_term::IMSetPosition ()
 {
   XRectangle preedit_rect, status_rect, *needed_rect;
   XVaNestedList preedit_attr, status_attr;
 
   if (!Input_Context
       || !focus
-      || !(input_style & XIMPreeditArea)
+      || !(input_style & (XIMPreeditArea | XIMPreeditPosition))
       || !IMisRunning ())
     return;
 
@@ -1633,11 +1632,12 @@ rxvt_term::IMSetStatusPosition ()
   XFree (needed_rect);
 
   preedit_attr = XVaCreateNestedList (0, XNArea, &preedit_rect, NULL);
-  status_attr = XVaCreateNestedList (0, XNArea, &status_rect, NULL);
+  status_attr  = XVaCreateNestedList (0, XNArea, &status_rect,  NULL);
 
   XSetICValues (Input_Context,
                 XNPreeditAttributes, preedit_attr,
-                XNStatusAttributes, status_attr, NULL);
+                XNStatusAttributes,  status_attr,
+                NULL);
 
   XFree (preedit_attr);
   XFree (status_attr);
index b62083828ed8f0f9d5d01da3e93a434d6170613a..fe13899f83201672d53e3fdf87b3f93fb91bd38b 100644 (file)
@@ -1208,7 +1208,7 @@ struct rxvt_term : zero_initialized, rxvt_vars, rxvt_screen {
   bool IMisRunning ();
   void IMSendSpot ();
   bool IM_get_IC (const char *modifiers);
-  void IMSetStatusPosition ();
+  void IMSetPosition ();
 #endif
 
   void resize_scrollbar ();