winemac: Extract some logic into a new function, sync_window_z_order().

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Ken Thomases 2016-05-12 18:50:45 -05:00 committed by Alexandre Julliard
parent 225482f5ad
commit 321a1511da

View File

@ -784,6 +784,16 @@ static void hide_window(struct macdrv_win_data *data)
}
/***********************************************************************
* sync_window_z_order
*/
static void sync_window_z_order(struct macdrv_win_data *data)
{
if (data->on_screen)
show_window(data);
}
/***********************************************************************
* get_region_data
*
@ -878,8 +888,8 @@ static void sync_window_position(struct macdrv_win_data *data, UINT swp_flags, c
TRACE("win %p/%p whole_rect %s frame %s\n", data->hwnd, data->cocoa_window,
wine_dbgstr_rect(&data->whole_rect), wine_dbgstr_cgrect(frame));
if (data->on_screen && (!(swp_flags & SWP_NOZORDER) || (swp_flags & SWP_SHOWWINDOW)))
show_window(data);
if (!(swp_flags & SWP_NOZORDER) || (swp_flags & SWP_SHOWWINDOW))
sync_window_z_order(data);
}