chore: rename window-position-{x,y} to window-initial-position-{x,y}

This commit is contained in:
Adam Wolf
2024-12-31 10:35:23 -06:00
committed by Mitchell Hashimoto
parent 16bf3b8820
commit f9250e28b5
4 changed files with 8 additions and 8 deletions

View File

@@ -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
}