8050478: [macosx] Cursor not updating correctly after closing a modal dialogReviewed-by: serb, alexsch