Fix crash in `start_display_link` (#50875) (cherry-pick to preview) (#50878)
zed-zippy[bot]
and
John Tur
created
Cherry-pick of #50875 to preview
----
Fixes ZED-5G8
If `DisplayLink::new` fails, `frame_requests` is dropped . It is not
valid to destroy a DispatchSource that is not `resume()`d. So, ensure we
call `resume()` before there's a chance for anything to fail.
Release Notes:
- Fixed a crash that could occur on macOS when changing monitor
configurations
Co-authored-by: John Tur <john-tur@outlook.com>