# HG changeset patch # User Kenichi Handa # Date 1059397514 0 # Node ID 4b5692f6703a0086f90f647c0b6192fa5794d73e # Parent 5d60b6e20fbdb765445e609675d32b0d9da94c3c (xic_set_preeditarea): Add the left fringe width to spot.x. diff -r 5d60b6e20fbd -r 4b5692f6703a src/xfns.c --- a/src/xfns.c Mon Jul 28 06:27:09 2003 +0000 +++ b/src/xfns.c Mon Jul 28 13:05:14 2003 +0000 @@ -2475,7 +2475,7 @@ XVaNestedList attr; XPoint spot; - spot.x = WINDOW_TO_FRAME_PIXEL_X (w, x); + spot.x = WINDOW_TO_FRAME_PIXEL_X (w, x) + WINDOW_LEFT_FRINGE_WIDTH (w); spot.y = WINDOW_TO_FRAME_PIXEL_Y (w, y) + FONT_BASE (FRAME_FONT (f)); attr = XVaCreateNestedList (0, XNSpotLocation, &spot, NULL); XSetICValues (FRAME_XIC (f), XNPreeditAttributes, attr, NULL);