Add support for macOS' "Do Nothing" window setting (#39311)

Fixes titlebar double-click behavior to properly handle the macOS system
setting when "Do Nothing" is selected in System Settings > Desktop &
Dock > "Double-click a window's title bar to".

Closes https://github.com/zed-industries/zed/issues/39102

Release Notes:

- Fixed macOS Do Nothing window double click setting not being
respected.
This commit is contained in:
Mario Kozjak
2025-10-02 08:51:10 +02:00
committed by GitHub
parent a49b2d5bf8
commit fb343a7743
+3
View File
@@ -1520,6 +1520,9 @@ impl PlatformWindow for MacWindow {
};
match action_str.as_ref() {
"None" => {
// "Do Nothing" selected, so do no action
}
"Minimize" => {
window.miniaturize_(nil);
}