renderer: receive message with viewport match selections

Doesn't draw yet
This commit is contained in:
Mitchell Hashimoto
2025-11-16 07:05:32 -08:00
parent 061d157b50
commit 6c8ffb5fc1
4 changed files with 71 additions and 5 deletions

View File

@@ -451,6 +451,14 @@ fn drainMailbox(self: *Thread) !void {
self.startDrawTimer();
},
.search_viewport_matches => |v| {
// Note we don't free the new value because we expect our
// allocators to match.
if (self.renderer.search_matches) |*m| m.arena.deinit();
self.renderer.search_matches = v;
self.renderer.search_matches_dirty = true;
},
.inspector => |v| self.flags.has_inspector = v,
.macos_display_id => |v| {