From 9cb728a58c53b9acb712d80988dc41ae37408ae1 Mon Sep 17 00:00:00 2001 From: Jan D Date: Wed, 18 Aug 2010 10:06:45 +0200 Subject: [PATCH] * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868). --- src/ChangeLog | 4 ++++ src/nsterm.m | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 060b8fb739f..576966dfba3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-08-18 Jan Djärv + + * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868). + 2010-08-18 Jan Djärv * gtkutil.c (update_frame_tool_bar): Literal stings are const char*. diff --git a/src/nsterm.m b/src/nsterm.m index 88d47d41972..2eb84607562 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1792,6 +1792,9 @@ ns_define_frame_cursor (struct frame *f, Cursor cursor) EmacsView *view = FRAME_NS_VIEW (f); FRAME_POINTER_TYPE (f) = cursor; [[view window] invalidateCursorRectsForView: view]; + /* Redisplay assumes this function also draws the changed frame + cursor, but this function doesn't, so do it explicitly. */ + x_update_cursor (f, 1); } } -- 2.39.2