mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-24 16:25:20 +00:00
inspector: always render the surface when the inspector is opened
This commit is contained in:
@@ -116,8 +116,16 @@ pub fn render(
|
||||
self: *Inspector,
|
||||
surface: *Surface,
|
||||
) void {
|
||||
// Draw the UI
|
||||
self.gui.draw(
|
||||
surface,
|
||||
self.mouse,
|
||||
);
|
||||
|
||||
// We always trigger a rebuild of the surface when the inspector
|
||||
// is focused because modifying the inspector can change the terminal
|
||||
// state. This is KIND OF expensive (wasted CPU if nothing was done)
|
||||
// but the inspector is a development tool and it expressly costs
|
||||
// more resources while open so its okay.
|
||||
surface.renderer_thread.wakeup.notify() catch {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user