emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch ok for release branch?


From: Po Lu
Subject: Patch ok for release branch?
Date: Thu, 12 Jan 2023 08:39:36 +0800

Is this OK for Emacs 29?  It fixes a bug where the input method popup
appears at the wrong location when a margin is enabled.

diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 13f6c6c3c4d..9190649f414 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,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]