[codex] Guard traffic light sync off macOS (#531)

This commit is contained in:
Pim de Jong
2026-04-12 01:18:41 -07:00
committed by GitHub
parent 839d87181b
commit fc53f978b6
3 changed files with 60 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ const TRAFFIC_LIGHT_RADIUS = 6
const TRAFFIC_LIGHT_X = 16
function syncTrafficLightPosition(win: BrowserWindow, zoomFactor: number): void {
if (win.isDestroyed()) {
if (process.platform !== 'darwin' || win.isDestroyed()) {
return
}
const y = Math.round(TITLEBAR_CSS_CENTER * zoomFactor - TRAFFIC_LIGHT_RADIUS)