mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
core: fix invalid action call that wasn't setting our metrics properly
Fixes #2308
This commit is contained in:
@ -1257,14 +1257,10 @@ pub fn setFontSize(self: *Surface, size: font.face.DesiredSize) !void {
|
||||
errdefer self.app.font_grid_set.deref(font_grid_key);
|
||||
|
||||
// Set our cell size
|
||||
try self.rt_app.performAction(
|
||||
.{ .surface = self },
|
||||
.cell_size,
|
||||
.{
|
||||
.width = font_grid.metrics.cell_width,
|
||||
.height = font_grid.metrics.cell_height,
|
||||
},
|
||||
);
|
||||
try self.setCellSize(.{
|
||||
.width = font_grid.metrics.cell_width,
|
||||
.height = font_grid.metrics.cell_height,
|
||||
});
|
||||
|
||||
// Notify our render thread of the new font stack. The renderer
|
||||
// MUST accept the new font grid and deref the old.
|
||||
|
Reference in New Issue
Block a user