mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-16 00:08:23 +00:00
chore: rename window-position-{x,y} to window-initial-position-{x,y}
This commit is contained in:

committed by
Mitchell Hashimoto

parent
16bf3b8820
commit
f9250e28b5
@@ -150,17 +150,17 @@ extension Ghostty {
|
||||
return String(cString: ptr)
|
||||
}
|
||||
|
||||
var windowPositionX: Int16? {
|
||||
var windowInitialPositionX: Int16? {
|
||||
guard let config = self.config else { return nil }
|
||||
var v: Int16 = 0
|
||||
let key = "window-position-x"
|
||||
let key = "window-initial-position-x"
|
||||
return ghostty_config_get(config, &v, key, UInt(key.count)) ? v : nil
|
||||
}
|
||||
|
||||
var windowPositionY: Int16? {
|
||||
var windowInitialPositionY: Int16? {
|
||||
guard let config = self.config else { return nil }
|
||||
var v: Int16 = 0
|
||||
let key = "window-position-y"
|
||||
let key = "window-initial-position-y"
|
||||
return ghostty_config_get(config, &v, key, UInt(key.count)) ? v : nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user