mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
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:
parent
225482f5ad
commit
321a1511da
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user