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