comparison src/xfns.c @ 52059:4b5692f6703a

(xic_set_preeditarea): Add the left fringe width to spot.x.
author Kenichi Handa <handa@m17n.org>
date Mon, 28 Jul 2003 13:05:14 +0000
parents 61f03c9c44c3
children c3f9f23be6a8
comparison
equal deleted inserted replaced
52058:5d60b6e20fbd 52059:4b5692f6703a
2473 { 2473 {
2474 struct frame *f = XFRAME (w->frame); 2474 struct frame *f = XFRAME (w->frame);
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);
2482 XFree (attr); 2482 XFree (attr);
2483 } 2483 }