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

@@ -375,6 +375,12 @@ fn drainMailbox(self: *Thread) !void {
},
.inspector => |v| self.flags.has_inspector = v,
.macos_display_id => |v| {
if (@hasDecl(renderer.Renderer, "setMacOSDisplayID")) {
try self.renderer.setMacOSDisplayID(v);
}
},
}
}
}