Support macOS Sequoia titlebar double-click action (#30468)

Closes #16527

Release Notes:

- Added MacOS titlebar double-click action

---

Unfortunately, Apple doesn't seem to make the "Fill" API public or
documented anywhere.

Co-authored-by: Mikayla Maki <mikayla@zed.dev>
This commit is contained in:
Chung Wei Leong
2025-05-30 17:13:50 +00:00
committed by GitHub
co-authored by Mikayla Maki
parent f9f4be1fc4
commit 0ee900e8fb
4 changed files with 59 additions and 1 deletions
+6
View File
@@ -4011,6 +4011,12 @@ impl Window {
self.platform_window.gpu_specs()
}
/// Perform titlebar double-click action.
/// This is MacOS specific.
pub fn titlebar_double_click(&self) {
self.platform_window.titlebar_double_click();
}
/// Toggles the inspector mode on this window.
#[cfg(any(feature = "inspector", debug_assertions))]
pub fn toggle_inspector(&mut self, cx: &mut App) {