summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Reitter <david.reitter@gmail.com>2009-05-07 03:22:09 +0000
committerDavid Reitter <david.reitter@gmail.com>2009-05-07 03:22:09 +0000
commit4077e59253c2da38e9deda0f678374eedf976117 (patch)
treecf3c2a67e303eda78bcb1cedb3bc0ad42d173e12 /src
parent46b0d52db3767f8ec77c385db77c5d305e2db1a9 (diff)
downloademacs-4077e59253c2da38e9deda0f678374eedf976117.tar.gz
mouse movement/highlight: bracket drawing operations in ns_update_begin and ns_update_end.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 3ec7a34f277..aeeae4b20da 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1752,9 +1752,11 @@ note_mouse_movement (struct frame *frame, float x, float y)
y < last_mouse_glyph.origin.y ||
y >= (last_mouse_glyph.origin.y + last_mouse_glyph.size.height))
{
+ ns_update_begin(frame);
frame->mouse_moved = 1;
note_mouse_highlight (frame, x, y);
remember_mouse_glyph (frame, x, y, &last_mouse_glyph);
+ ns_update_end(frame);
return 1;
}
@@ -1856,11 +1858,13 @@ ns_frame_up_to_date (struct frame *f)
/*&& dpyinfo->mouse_face_mouse_frame*/)
{
BLOCK_INPUT;
+ ns_update_begin(f);
if (dpyinfo->mouse_face_mouse_frame)
note_mouse_highlight (dpyinfo->mouse_face_mouse_frame,
dpyinfo->mouse_face_mouse_x,
dpyinfo->mouse_face_mouse_y);
dpyinfo->mouse_face_deferred_gc = 0;
+ ns_update_end(f);
UNBLOCK_INPUT;
}
}