Skip to content

Revert "gpui: Fix title bar clicks being delayed on macOS 27 (#58947)" - #59214

Merged
cole-miller merged 1 commit into
mainfrom
revert-title-bar-change
Jun 12, 2026
Merged

Revert "gpui: Fix title bar clicks being delayed on macOS 27 (#58947)"#59214
cole-miller merged 1 commit into
mainfrom
revert-title-bar-change

Conversation

@cole-miller

Copy link
Copy Markdown
Member

This reverts commit c8554b4.

Reverting this because it broke dragging the settings UI window.

Closes #59163

Release Notes:

  • Fixed not being able to drag the settings UI window on macOS.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jun 12, 2026
@cole-miller

Copy link
Copy Markdown
Member Author

/cherry-pick preview

@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jun 12, 2026
@cole-miller
cole-miller added this pull request to the merge queue Jun 12, 2026
Merged via the queue into main with commit fca2ccd Jun 12, 2026
43 checks passed
@cole-miller
cole-miller deleted the revert-title-bar-change branch June 12, 2026 19:39
cole-miller added a commit that referenced this pull request Jun 12, 2026
#59214) (cherry-pick to preview) (#59216)

Cherry-pick of #59214 to preview

----
This reverts commit c8554b4.

Reverting this because it broke dragging the settings UI window.

Closes #59163

Release Notes:

- Fixed not being able to drag the settings UI window on macOS.

Co-authored-by: Cole Miller <cole@zed.dev>
This was referenced Jun 18, 2026
ypatodkar pushed a commit to ypatodkar/zed that referenced this pull request Jun 25, 2026
## Summary

macOS 27 Beta delays clicks in titlebar regions while AppKit determines
whether a gesture should become a drag, single click, or double click.
Zed's main workspace windows render a custom titlebar that already
handles window movement via `Window::start_window_move`, so they do not
need AppKit's native movable-titlebar behavior.

This sets `is_movable` to `false` for the main `MultiWorkspace` windows
and documents the `WindowOptions::is_movable` caveat for GPUI users with
custom titlebars.

## Background

The previous fix for this, zed-industries#58947, used AppKit's private
`_opaqueRectForWindowMoveWhenInTitlebar` SPI to mark GPUI's full-size
content view as app-owned titlebar content. That fixed delayed titlebar
clicks, but was later reverted in zed-industries#59214 because it also affected
windows that rely on AppKit's native titlebar dragging, like the
settings window.

This PR takes a narrower approach by only changing Zed's main
custom-titlebar windows. Those windows already implement dragging
explicitly via `Window::start_window_move`, so disabling AppKit's native
movable-titlebar behavior fixes the macOS 27 Beta click delay without
affecting other window types.

Release Notes:

- Fixed delayed clicks in the custom titlebar on macOS 27 Beta.
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…ustries#58947)" (zed-industries#59214) (cherry-pick to preview) (zed-industries#59216)

Cherry-pick of zed-industries#59214 to preview

----
This reverts commit c5feb35.

Reverting this because it broke dragging the settings UI window.

Closes zed-industries#59163

Release Notes:

- Fixed not being able to drag the settings UI window on macOS.

Co-authored-by: Cole Miller <cole@zed.dev>
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…ustries#58947)" (zed-industries#59214)

This reverts commit c5feb35.

Reverting this because it broke dragging the settings UI window.

Closes zed-industries#59163

Release Notes:

- Fixed not being able to drag the settings UI window on macOS.
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
## Summary

macOS 27 Beta delays clicks in titlebar regions while AppKit determines
whether a gesture should become a drag, single click, or double click.
Zed's main workspace windows render a custom titlebar that already
handles window movement via `Window::start_window_move`, so they do not
need AppKit's native movable-titlebar behavior.

This sets `is_movable` to `false` for the main `MultiWorkspace` windows
and documents the `WindowOptions::is_movable` caveat for GPUI users with
custom titlebars.

## Background

The previous fix for this, zed-industries#58947, used AppKit's private
`_opaqueRectForWindowMoveWhenInTitlebar` SPI to mark GPUI's full-size
content view as app-owned titlebar content. That fixed delayed titlebar
clicks, but was later reverted in zed-industries#59214 because it also affected
windows that rely on AppKit's native titlebar dragging, like the
settings window.

This PR takes a narrower approach by only changing Zed's main
custom-titlebar windows. Those windows already implement dragging
explicitly via `Window::start_window_move`, so disabling AppKit's native
movable-titlebar behavior fixes the macOS 27 Beta click delay without
affecting other window types.

Release Notes:

- Fixed delayed clicks in the custom titlebar on macOS 27 Beta.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App windows are not draggable on macOS

2 participants