diff options
| author | Alan Third | 2017-09-03 13:51:14 +0100 |
|---|---|---|
| committer | Alan Third | 2017-09-03 13:54:18 +0100 |
| commit | 1b492fa5456e2b6face8d0856f11d17e432693b0 (patch) | |
| tree | 46274e7989b4727278a3523952c086a678b07034 /src | |
| parent | c8439abe22f1bb5e717f5c0f3725084c8d738155 (diff) | |
| download | emacs-1b492fa5456e2b6face8d0856f11d17e432693b0.tar.gz emacs-1b492fa5456e2b6face8d0856f11d17e432693b0.zip | |
Force screen update after drawing cursor glyph (bug#23774)
* src/nsterm.m (ns_draw_window_cursor): Force a screen update after
drawing the glyph over the cursor.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index ff3329d1cee..6b0e18bf439 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -3143,7 +3143,16 @@ ns_draw_window_cursor (struct window *w, struct glyph_row *glyph_row, | |||
| 3143 | 3143 | ||
| 3144 | /* draw the character under the cursor */ | 3144 | /* draw the character under the cursor */ |
| 3145 | if (cursor_type != NO_CURSOR) | 3145 | if (cursor_type != NO_CURSOR) |
| 3146 | draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR); | 3146 | { |
| 3147 | draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR); | ||
| 3148 | |||
| 3149 | #ifdef NS_IMPL_COCOA | ||
| 3150 | /* The glyph under the cursor isn't displayed when switching | ||
| 3151 | spaces, so force an update. This seems to be related to the | ||
| 3152 | use of NSDisableScreenUpdates. */ | ||
| 3153 | [FRAME_NS_VIEW (f) setNeedsDisplay:YES]; | ||
| 3154 | #endif | ||
| 3155 | } | ||
| 3147 | 3156 | ||
| 3148 | #ifdef NS_IMPL_COCOA | 3157 | #ifdef NS_IMPL_COCOA |
| 3149 | NSEnableScreenUpdates (); | 3158 | NSEnableScreenUpdates (); |