Fixes a minor race condition in active_displays that might happen
if a display is removed between the active_display_count and the
CGGetActiveDisplayList. In that case the returned vec would be
inconsistent and contain one (or more) spurious null displays.
Note: the returned value will always be subject to TOC/TOU,
of course, but this specific case has the returned value
containing invalid displays with id=0 that were never supposed
to be in the returned value in any possible state of the
displays; this commit fixes this case.
* ci: Remove usage of macos-11
This is being removed at GitHub on June 28, 2024.
Switch semver action to macos-14.
* Use `macos-14` instead of `macos-14.0` for semver check
---------
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* core-text: define version variable and dbg!() it
Note that this test already has a number of dbg!() calls, presumably
to aid debugging when it fails in the future (for example due to
OS changes).
* core-text: extract helper function in test
* core-text: improve assertion to make failure easier to diagnose
* core-text: allow variations test to pass on 14.x.y
* CI: test on macOS 14
* CI: only test old Rust on one version
This is in line with a decision made about the Servo organization by the Servo TSC. We consider `main` to be shorter, easier to type, and more modern, so we are standardizing on this branch name.
* run tests on MSRV, for all macOS versions
* use dtolnay/rust-toolchain rather than unmaintained actions-rs/toolchain
* remove "msrv" build target as blocker for build result, as it is part of build
* update outdated actions/checkout
* `kCTFontDefaultOrientation` -> `kCTFontOrientationDefault`
* `kCTFontOrientationHorizontal` -> `kCTFontOrientationHorizontal`
* `kCTFontOrientationVertical` -> `kCTFontOrientationVertical`
The old names were deprecated in macOS 10.11, iOS 9. The new names
were introduced in macOS 10.8, iOS 6.
Fixes#438.
This reverts commit 6d00383baf.
It broke semver because it removed the export of CFIndex which
which older versions of the core-foundation crate are depending on.
Fixes#619
Drop #[no_mangle] from cg_event_tap_callback_internal
This allows multiple versions of core-graphics to be linked into the same binaries without getting "duplicate symbol: cg_event_tap_callback_internal"