mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-29 22:48:37 +00:00
Correct Swift formatting inconsistencies
This commit is contained in:

committed by
Mitchell Hashimoto

parent
5948bd3f02
commit
f1c68f698b
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user