]> code.delx.au - gnu-emacs/commitdiff
(note_mouse_highlight): Avoid changing the mouse
authorGerd Moellmann <gerd@gnu.org>
Mon, 14 May 2001 14:56:23 +0000 (14:56 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 14 May 2001 14:56:23 +0000 (14:56 +0000)
pointer shape when show_mouse_face has already done it.

src/ChangeLog
src/xterm.c

index 280b828f73890b7a5eb16cf9969759de00639451..9cd3520dcb63aea1a55cbe5d201ec866f0dcdc9a 100644 (file)
@@ -8,7 +8,10 @@
 
 2001-05-14  Gerd Moellmann  <gerd@gnu.org>
 
-       * xterm.c (x_draw_glyphs): Fix compuation of rightmost x for
+       * xterm.c (note_mouse_highlight): Avoid changing the mouse
+       pointer shape when show_mouse_face has already done it.
+       
+       * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
        full-width rows.
 
        * xfaces.c (split_font_name): Make sure to leave the loop
index 056514d709646d3dc2c9b83fb8254c3f1a288d53..3dfe0fac2aae9e6557dcd8a4e69eb07e9c73ddb2 100644 (file)
@@ -6997,6 +6997,7 @@ note_mouse_highlight (f, x, y)
 
              /* Display it as active.  */
              show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
+             cursor = None;
            }
          /* Handle the text property case.  */
          else if (!NILP (mouse_face) && BUFFERP (object))
@@ -7038,6 +7039,7 @@ note_mouse_highlight (f, x, y)
 
              /* Display it as active.  */
              show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
+             cursor = None;
            }
          else if (!NILP (mouse_face) && STRINGP (object))
            {
@@ -7069,6 +7071,7 @@ note_mouse_highlight (f, x, y)
                = face_at_string_position (w, object, pos, 0, 0, 0, &ignore,
                                           glyph->face_id, 1);
              show_mouse_face (dpyinfo, DRAW_MOUSE_FACE);
+             cursor = None;
            }
        }