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