]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_update_end): Move SetPortWindowPort to inside
authorSteven Tamm <steventamm@mac.com>
Thu, 2 Sep 2004 17:00:55 +0000 (17:00 +0000)
committerSteven Tamm <steventamm@mac.com>
Thu, 2 Sep 2004 17:00:55 +0000 (17:00 +0000)
BLOCK_INPUT.
(x_set_offset): Use FRAME_MAC_WINDOW.

src/macterm.c

index 9e482a17c8e4cde5cc3099f4c529c49d093c7f9e..0177d57fec83a7fc654a8c333938aa6c831e7e7a 100644 (file)
@@ -1325,6 +1325,10 @@ static void
 x_update_end (f)
      struct frame *f;
 {
+  /* Mouse highlight may be displayed again.  */
+  FRAME_MAC_DISPLAY_INFO (f)->mouse_face_defer = 0;
+
+  BLOCK_INPUT;
   /* Reset the background color of Mac OS Window to that of the frame after
      update so that it is used by Mac Toolbox to clear the update region before
      an update event is generated.  */
@@ -1332,10 +1336,6 @@ x_update_end (f)
 
   mac_set_backcolor (FRAME_BACKGROUND_PIXEL (f));
 
-  /* Mouse highlight may be displayed again.  */
-  FRAME_MAC_DISPLAY_INFO (f)->mouse_face_defer = 0;
-
-  BLOCK_INPUT;
   XFlush (FRAME_MAC_DISPLAY (f));
   UNBLOCK_INPUT;
 }
@@ -5123,7 +5123,7 @@ x_set_offset (f, xoff, yoff, change_gravity)
   modified_left = f->left_pos;
   modified_top = f->top_pos;
 
-  MoveWindow (f->output_data.mac->mWP, modified_left + 6,
+  MoveWindow (FRAME_MAC_WINDOW (f), modified_left + 6,
              modified_top + 42, false);
 
   UNBLOCK_INPUT;