From fa49abf8bfb67ebab4c92bca656380948317a273 Mon Sep 17 00:00:00 2001 From: Martin Rudalics Date: Wed, 5 Feb 2014 10:24:55 +0100 Subject: [PATCH] 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). --- src/ChangeLog | 5 +++++ src/xdisp.c | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1ef4d9fc816..50c08f8199c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2014-02-05 Martin Rudalics + + * xdisp.c (note_mouse_highlight): When entering a margin area show + a non-text cursor (Bug#16647). + 2014-02-04 Paul Eggert * menu.c (Fx_popup_dialog): Remove label 'dialog_via_menu'. diff --git a/src/xdisp.c b/src/xdisp.c index 0ca877d997f..f9c1b4d1bf0 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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 -- 2.39.2