From 7a5e3a4003f8bd3e67451d1d3a66a94c13e3aa95 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 19 Feb 2023 11:30:57 -0800 Subject: [PATCH] macos: stdbool missing so we can use bool in ghostty.h --- include/ghostty.h | 1 + macos/Sources/TerminalSurfaceView.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ghostty.h b/include/ghostty.h index 9bb88d65a..5e50cbc95 100644 --- a/include/ghostty.h +++ b/include/ghostty.h @@ -12,6 +12,7 @@ extern "C" { #endif +#include #include //------------------------------------------------------------------- diff --git a/macos/Sources/TerminalSurfaceView.swift b/macos/Sources/TerminalSurfaceView.swift index ac3a05500..1a6e70c34 100644 --- a/macos/Sources/TerminalSurfaceView.swift +++ b/macos/Sources/TerminalSurfaceView.swift @@ -240,7 +240,7 @@ class TerminalSurfaceView_Real: NSView, NSTextInputClient, ObservableObject { func focusDidChange(_ focused: Bool) { guard let surface = self.surface else { return } - ghostty_surface_set_focus(surface, focused ? 1 : 0) + ghostty_surface_set_focus(surface, focused) } override func resize(withOldSuperviewSize oldSize: NSSize) {