renderer/metal: API to handle macOS display ID changing

This commit is contained in:
Mitchell Hashimoto
2024-05-04 19:40:58 -07:00
parent 6b3cb69101
commit ca9689be46
6 changed files with 58 additions and 4 deletions

View File

@@ -69,6 +69,9 @@ pub const Message = union(enum) {
/// Activate or deactivate the inspector.
inspector: bool,
/// The macOS display ID has changed for the window.
macos_display_id: u32,
/// Initialize a change_config message.
pub fn initChangeConfig(alloc: Allocator, config: *const configpkg.Config) !Message {
const thread_ptr = try alloc.create(renderer.Thread.DerivedConfig);