diff options
| author | Kenichi Handa | 2003-07-28 13:05:25 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-07-28 13:05:25 +0000 |
| commit | 17e6d49143a20656f6cd884dd29654b4018d744b (patch) | |
| tree | dfc275e35e1fb2a2104a0db7acee773c3284f24c /src | |
| parent | c52093761b6c2bb344c4d3424eb9c3e1f5f4aa6e (diff) | |
| download | emacs-17e6d49143a20656f6cd884dd29654b4018d744b.tar.gz emacs-17e6d49143a20656f6cd884dd29654b4018d744b.zip | |
(xic_set_preeditarea): Add the left fringe width to spot.x.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xfns.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fee3907d110..346ba929ce3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp> (tiny change) | ||
| 2 | |||
| 3 | * xfns.c (xic_set_preeditarea): Add the left fringe width to | ||
| 4 | spot.x. | ||
| 5 | |||
| 1 | 2003-07-22 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2003-07-22 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 7 | ||
| 3 | * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it. | 8 | * 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) | |||
| 2475 | XVaNestedList attr; | 2475 | XVaNestedList attr; |
| 2476 | XPoint spot; | 2476 | XPoint spot; |
| 2477 | 2477 | ||
| 2478 | spot.x = WINDOW_TO_FRAME_PIXEL_X (w, x); | 2478 | spot.x = WINDOW_TO_FRAME_PIXEL_X (w, x) + WINDOW_LEFT_FRINGE_WIDTH (w); |
| 2479 | spot.y = WINDOW_TO_FRAME_PIXEL_Y (w, y) + FONT_BASE (FRAME_FONT (f)); | 2479 | spot.y = WINDOW_TO_FRAME_PIXEL_Y (w, y) + FONT_BASE (FRAME_FONT (f)); |
| 2480 | attr = XVaCreateNestedList (0, XNSpotLocation, &spot, NULL); | 2480 | attr = XVaCreateNestedList (0, XNSpotLocation, &spot, NULL); |
| 2481 | XSetICValues (FRAME_XIC (f), XNPreeditAttributes, attr, NULL); | 2481 | XSetICValues (FRAME_XIC (f), XNPreeditAttributes, attr, NULL); |