diff options
author | Po Lu <luangruo@yahoo.com> | 2023-01-12 18:36:14 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2023-01-12 18:36:14 +0800 |
commit | 53b47df8229a3a54777940663edda28de0a01b90 (patch) | |
tree | 3de1ace02162327215fc52eb6b37ff703a8b5fc8 /src/pgtkterm.c | |
parent | f4f30ff4c44dcfdf780f1981aa541af713f2805f (diff) | |
download | emacs-53b47df8229a3a54777940663edda28de0a01b90.tar.gz |
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.
Diffstat (limited to 'src/pgtkterm.c')
-rw-r--r-- | src/pgtkterm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 5158492ca09..c00e13550bd 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -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, |