Report cursor correctly on PGTK when there is a margin
* src/pgtkterm.c (pgtk_draw_window_cursor): Adjust frame_x by the margin width as well.
This commit is contained in:
parent
f4f30ff4c4
commit
53b47df822
1 changed files with 2 additions and 1 deletions
|
@ -2959,7 +2959,8 @@ pgtk_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, int x,
|
|||
if (w == XWINDOW (f->selected_window))
|
||||
{
|
||||
int frame_x = (WINDOW_TO_FRAME_PIXEL_X (w, x)
|
||||
+ WINDOW_LEFT_FRINGE_WIDTH (w));
|
||||
+ WINDOW_LEFT_FRINGE_WIDTH (w)
|
||||
+ WINDOW_LEFT_MARGIN_WIDTH (w));
|
||||
int frame_y = WINDOW_TO_FRAME_PIXEL_Y (w, y);
|
||||
pgtk_im_set_cursor_location (f, frame_x, frame_y,
|
||||
w->phys_cursor_width,
|
||||
|
|
Loading…
Add table
Reference in a new issue