dlls/winemac.drv/window.c
/***********************************************************************
 *              sync_window_position
 *
 * Synchronize the Mac window position with the Windows one
 */
sync_window_position
Synchronize the Mac window position with the Windows one
sync_window_position Synchronize the Mac window position with the Windows one
static void sync_window_position(struct macdrv_win_data *data, UINT swp_flags)
{
    CGRect frame;
    if (data->minimized) return;
    frame = cgrect_from_rect(data->whole_rect);
    constrain_window_frame(&frame);
    data->on_screen = macdrv_set_cocoa_window_frame(data->cocoa_window, &frame);
    if (data->shaped) sync_window_region(data, (HRGN)1);
    TRACE("win %p/%p pos %s\n", data->hwnd, data->cocoa_window,
          wine_dbgstr_rect(&data->whole_rect));
    if (data->on_screen && (!(swp_flags & SWP_NOZORDER) || (swp_flags & SWP_SHOWWINDOW)))
        show_window(data);
}
static void sync_window_position ( struct macdrv_win_data * data , UINT swp_flags ) { CGRect frame ; if ( data -> minimized ) return ; frame = cgrect_from_rect ( data -> whole_rect ) ; constrain_window_frame ( & frame ) ; data -> on_screen = macdrv_set_cocoa_window_frame ( data -> cocoa_window , & frame ) ; if ( data -> shaped ) sync_window_region ( data , ( HRGN ) 1 ) ; TRACE ( " \n " , data -> hwnd , data -> cocoa_window , wine_dbgstr_rect ( & data -> whole_rect ) ) ; if ( data -> on_screen && ( ! ( swp_flags & SWP_NOZORDER ) || ( swp_flags & SWP_SHOWWINDOW ) ) ) show_window ( data ) ; }
sync_window_position
 Synchronize the Mac window position with the Windows one
sync_window_position Synchronize the Mac window position with the Windows one