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.
This commit is contained in:
parent
c8439abe22
commit
1b492fa545
1 changed files with 10 additions and 1 deletions
11
src/nsterm.m
11
src/nsterm.m
|
@ -3143,7 +3143,16 @@ Note that CURSOR_WIDTH is meaningful only for (h)bar cursors.
|
|||
|
||||
/* draw the character under the cursor */
|
||||
if (cursor_type != NO_CURSOR)
|
||||
draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
|
||||
{
|
||||
draw_phys_cursor_glyph (w, glyph_row, DRAW_CURSOR);
|
||||
|
||||
#ifdef NS_IMPL_COCOA
|
||||
/* The glyph under the cursor isn't displayed when switching
|
||||
spaces, so force an update. This seems to be related to the
|
||||
use of NSDisableScreenUpdates. */
|
||||
[FRAME_NS_VIEW (f) setNeedsDisplay:YES];
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef NS_IMPL_COCOA
|
||||
NSEnableScreenUpdates ();
|
||||
|
|
Loading…
Add table
Reference in a new issue