Fix cursor appearance in note_mouse_highlight (Bug#16647).

* xdisp.c (note_mouse_highlight): When entering a margin area show
a non-text cursor (Bug#16647).
This commit is contained in:
Martin Rudalics 2014-02-05 10:24:55 +01:00
parent 451ea3e6cc
commit fa49abf8bf
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-02-05 Martin Rudalics <rudalics@gmx.at>
* xdisp.c (note_mouse_highlight): When entering a margin area show
a non-text cursor (Bug#16647).
2014-02-04 Paul Eggert <eggert@cs.ucla.edu>
* menu.c (Fx_popup_dialog): Remove label 'dialog_via_menu'.

View file

@ -28568,7 +28568,15 @@ note_mouse_highlight (struct frame *f, int x, int y)
|| part == ON_LEFT_MARGIN || part == ON_RIGHT_MARGIN)
{
note_mode_line_or_margin_highlight (window, x, y, part);
return;
if (part == ON_LEFT_MARGIN || part == ON_RIGHT_MARGIN)
{
cursor = FRAME_X_OUTPUT (f)->nontext_cursor;
/* Sho non-text cursor (Bug#16647). */
goto set_cursor;
}
else
return;
}
#ifdef HAVE_WINDOW_SYSTEM