changeset 103173:80d012abe015

mouse movement/highlight: bracket drawing operations in ns_update_begin and ns_update_end.
author David Reitter <david.reitter@gmail.com>
date Thu, 07 May 2009 03:22:09 +0000
parents ed3b8f06cfe1
children 27ea4d4a56a4
files src/nsterm.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/nsterm.m	Thu May 07 03:21:37 2009 +0000
+++ b/src/nsterm.m	Thu May 07 03:22:09 2009 +0000
@@ -1752,9 +1752,11 @@
       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 @@
       /*&& 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;
         }
     }