Correct Swift formatting inconsistencies

This commit is contained in:
Nicholas Mata
2025-08-14 03:18:46 -07:00
committed by Mitchell Hashimoto
parent 5948bd3f02
commit f1c68f698b
2 changed files with 3 additions and 3 deletions

View File

@@ -258,13 +258,13 @@ class AppDelegate: NSObject,
// Setup signal handlers // Setup signal handlers
setupSignals() setupSignals()
// If we launched via zig run then we need to force foreground. // If we launched via zig run then we need to force foreground.
if Ghostty.launchSource == .zig_run { if Ghostty.launchSource == .zig_run {
// This never gets called until we click the dock icon. This forces it // This never gets called until we click the dock icon. This forces it
// activate immediately. // activate immediately.
applicationDidBecomeActive(.init(name: NSApplication.didBecomeActiveNotification)) applicationDidBecomeActive(.init(name: NSApplication.didBecomeActiveNotification))
// We run in the background, this forces us to the front. // We run in the background, this forces us to the front.
DispatchQueue.main.async { DispatchQueue.main.async {
NSApp.setActivationPolicy(.regular) NSApp.setActivationPolicy(.regular)

View File

@@ -164,7 +164,7 @@ extension Ghostty {
let key = "window-position-x" let key = "window-position-x"
return ghostty_config_get(config, &v, key, UInt(key.count)) ? v : nil return ghostty_config_get(config, &v, key, UInt(key.count)) ? v : nil
} }
var windowPositionY: Int16? { var windowPositionY: Int16? {
guard let config = self.config else { return nil } guard let config = self.config else { return nil }
var v: Int16 = 0 var v: Int16 = 0