comparison src/macterm.c @ 56890:e8bafb4b47db

(x_update_end): Move SetPortWindowPort to inside BLOCK_INPUT. (x_set_offset): Use FRAME_MAC_WINDOW.
author Steven Tamm <steventamm@mac.com>
date Thu, 02 Sep 2004 17:00:55 +0000
parents 59a86f6ee1fb
children 05fe2d3ca439 8a6fd1c164cd 3219f94257bc
comparison
equal deleted inserted replaced
56889:ca08ff660c73 56890:e8bafb4b47db
1323 1323
1324 static void 1324 static void
1325 x_update_end (f) 1325 x_update_end (f)
1326 struct frame *f; 1326 struct frame *f;
1327 { 1327 {
1328 /* Mouse highlight may be displayed again. */
1329 FRAME_MAC_DISPLAY_INFO (f)->mouse_face_defer = 0;
1330
1331 BLOCK_INPUT;
1328 /* Reset the background color of Mac OS Window to that of the frame after 1332 /* Reset the background color of Mac OS Window to that of the frame after
1329 update so that it is used by Mac Toolbox to clear the update region before 1333 update so that it is used by Mac Toolbox to clear the update region before
1330 an update event is generated. */ 1334 an update event is generated. */
1331 SetPortWindowPort (FRAME_MAC_WINDOW (f)); 1335 SetPortWindowPort (FRAME_MAC_WINDOW (f));
1332 1336
1333 mac_set_backcolor (FRAME_BACKGROUND_PIXEL (f)); 1337 mac_set_backcolor (FRAME_BACKGROUND_PIXEL (f));
1334 1338
1335 /* Mouse highlight may be displayed again. */
1336 FRAME_MAC_DISPLAY_INFO (f)->mouse_face_defer = 0;
1337
1338 BLOCK_INPUT;
1339 XFlush (FRAME_MAC_DISPLAY (f)); 1339 XFlush (FRAME_MAC_DISPLAY (f));
1340 UNBLOCK_INPUT; 1340 UNBLOCK_INPUT;
1341 } 1341 }
1342 1342
1343 1343
5121 x_wm_set_size_hint (f, (long) 0, 0); 5121 x_wm_set_size_hint (f, (long) 0, 0);
5122 5122
5123 modified_left = f->left_pos; 5123 modified_left = f->left_pos;
5124 modified_top = f->top_pos; 5124 modified_top = f->top_pos;
5125 5125
5126 MoveWindow (f->output_data.mac->mWP, modified_left + 6, 5126 MoveWindow (FRAME_MAC_WINDOW (f), modified_left + 6,
5127 modified_top + 42, false); 5127 modified_top + 42, false);
5128 5128
5129 UNBLOCK_INPUT; 5129 UNBLOCK_INPUT;
5130 } 5130 }
5131 5131