From: Kenichi Handa Date: Mon, 28 Jul 2003 13:05:25 +0000 (+0000) Subject: (xic_set_preeditarea): Add the left fringe width to spot.x. X-Git-Tag: ttn-vms-21-2-B4~9224 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=17e6d49143a20656f6cd884dd29654b4018d744b;p=emacs.git (xic_set_preeditarea): Add the left fringe width to spot.x. --- diff --git a/src/ChangeLog b/src/ChangeLog index fee3907d110..346ba929ce3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-07-28 KOBAYASHI Yasuhiro (tiny change) + + * xfns.c (xic_set_preeditarea): Add the left fringe width to + spot.x. + 2003-07-22 Stefan Monnier * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it. diff --git a/src/xfns.c b/src/xfns.c index b4545c659f8..4ce7dec41d7 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2475,7 +2475,7 @@ xic_set_preeditarea (w, x, y) 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);