macos: stdbool missing so we can use bool in ghostty.h

This commit is contained in:
Mitchell Hashimoto
2023-02-19 11:30:57 -08:00
parent 9c0eb01393
commit 7a5e3a4003
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
extern "C" {
#endif
#include <stdbool.h>
#include <stdint.h>
//-------------------------------------------------------------------

View File

@ -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) {