From f1c68f698b588bdc55ac86e68c134eaed7514691 Mon Sep 17 00:00:00 2001 From: Nicholas Mata Date: Thu, 14 Aug 2025 03:18:46 -0700 Subject: [PATCH] Correct Swift formatting inconsistencies --- macos/Sources/App/macOS/AppDelegate.swift | 4 ++-- macos/Sources/Ghostty/Ghostty.Config.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/macos/Sources/App/macOS/AppDelegate.swift b/macos/Sources/App/macOS/AppDelegate.swift index 3244f163c..cbd3668c5 100644 --- a/macos/Sources/App/macOS/AppDelegate.swift +++ b/macos/Sources/App/macOS/AppDelegate.swift @@ -258,13 +258,13 @@ class AppDelegate: NSObject, // Setup signal handlers setupSignals() - + // If we launched via zig run then we need to force foreground. if Ghostty.launchSource == .zig_run { // This never gets called until we click the dock icon. This forces it // activate immediately. applicationDidBecomeActive(.init(name: NSApplication.didBecomeActiveNotification)) - + // We run in the background, this forces us to the front. DispatchQueue.main.async { NSApp.setActivationPolicy(.regular) diff --git a/macos/Sources/Ghostty/Ghostty.Config.swift b/macos/Sources/Ghostty/Ghostty.Config.swift index 0f6276d01..acc907edb 100644 --- a/macos/Sources/Ghostty/Ghostty.Config.swift +++ b/macos/Sources/Ghostty/Ghostty.Config.swift @@ -164,7 +164,7 @@ extension Ghostty { let key = "window-position-x" return ghostty_config_get(config, &v, key, UInt(key.count)) ? v : nil } - + var windowPositionY: Int16? { guard let config = self.config else { return nil } var v: Int16 = 0