]> git.eshelyaron.com Git - emacs.git/commitdiff
mouse movement/highlight: bracket drawing operations in ns_update_begin and ns_update...
authorDavid Reitter <david.reitter@gmail.com>
Thu, 7 May 2009 03:22:09 +0000 (03:22 +0000)
committerDavid Reitter <david.reitter@gmail.com>
Thu, 7 May 2009 03:22:09 +0000 (03:22 +0000)
src/nsterm.m

index 3ec7a34f277ecf5c07ee472468709607178061db..aeeae4b20da9300768dfa5f0777a4df529288efa 100644 (file)
@@ -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;
         }
     }