aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Reitter2009-05-07 03:22:09 +0000
committerDavid Reitter2009-05-07 03:22:09 +0000
commit4077e59253c2da38e9deda0f678374eedf976117 (patch)
treecf3c2a67e303eda78bcb1cedb3bc0ad42d173e12 /src
parent46b0d52db3767f8ec77c385db77c5d305e2db1a9 (diff)
downloademacs-4077e59253c2da38e9deda0f678374eedf976117.tar.gz
emacs-4077e59253c2da38e9deda0f678374eedf976117.zip
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)
1752 y < last_mouse_glyph.origin.y || 1752 y < last_mouse_glyph.origin.y ||
1753 y >= (last_mouse_glyph.origin.y + last_mouse_glyph.size.height)) 1753 y >= (last_mouse_glyph.origin.y + last_mouse_glyph.size.height))
1754 { 1754 {
1755 ns_update_begin(frame);
1755 frame->mouse_moved = 1; 1756 frame->mouse_moved = 1;
1756 note_mouse_highlight (frame, x, y); 1757 note_mouse_highlight (frame, x, y);
1757 remember_mouse_glyph (frame, x, y, &last_mouse_glyph); 1758 remember_mouse_glyph (frame, x, y, &last_mouse_glyph);
1759 ns_update_end(frame);
1758 return 1; 1760 return 1;
1759 } 1761 }
1760 1762
@@ -1856,11 +1858,13 @@ ns_frame_up_to_date (struct frame *f)
1856 /*&& dpyinfo->mouse_face_mouse_frame*/) 1858 /*&& dpyinfo->mouse_face_mouse_frame*/)
1857 { 1859 {
1858 BLOCK_INPUT; 1860 BLOCK_INPUT;
1861 ns_update_begin(f);
1859 if (dpyinfo->mouse_face_mouse_frame) 1862 if (dpyinfo->mouse_face_mouse_frame)
1860 note_mouse_highlight (dpyinfo->mouse_face_mouse_frame, 1863 note_mouse_highlight (dpyinfo->mouse_face_mouse_frame,
1861 dpyinfo->mouse_face_mouse_x, 1864 dpyinfo->mouse_face_mouse_x,
1862 dpyinfo->mouse_face_mouse_y); 1865 dpyinfo->mouse_face_mouse_y);
1863 dpyinfo->mouse_face_deferred_gc = 0; 1866 dpyinfo->mouse_face_deferred_gc = 0;
1867 ns_update_end(f);
1864 UNBLOCK_INPUT; 1868 UNBLOCK_INPUT;
1865 } 1869 }
1866 } 1870 }