gpui_macos: Fix traffic lights animation during fullscreen exit (#64339)

# Objective

Fixes #64050

Going out of fullscreen on MacOS currently gives the traffic lights a
janky animation. This seems to be a timing issue during ownership
transfer of traffic light rendering from AppKit to Zed.

## Solution

Add an additional boolean flag (yes, sad), which keeps track of whether
the animation from full screen to windows has completed.

## Testing

Tested this on a mac, animation is now buttery smooth.

## Showcase

<details>
  <summary>Click to view showcase</summary>

Before:



https://github.com/user-attachments/assets/f629f2d8-2466-47e3-9b8b-65975bdd1c61

After:


https://github.com/user-attachments/assets/a393d3a7-647d-4784-bc2a-9d67fac9f951

</details>

---

Release Notes:

- Fixed MacOS traffic lights animation when exiting fullscreen
- [GPUI] Fixed MacOS traffic lights animation when exiting fullscreen
613a80b9e9tidely committed on 9/17/2026, 8:29:46 AM· committed by GitHubparent0ef9214
1 file changedLine totals unavailable