mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-29 06:28: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
|
// 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)
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user