From e111acad33c3fb4f67cefca9a2d0ccbc8c8a0bce Mon Sep 17 00:00:00 2001 From: Mario Kozjak Date: Wed, 1 Oct 2025 09:02:33 +0200 Subject: [PATCH] gpui: Respect macOS 'Do Nothing' window double-click setting (#39235) 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 #39102 Release Notes: - Fixed macOS `Do Nothing` window double click setting not be respected --- crates/gpui/src/platform/mac/window.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index d5b1ea900d81adf83448960f485ed767c5549716..694dc7e023d5b46d54d409f1d04a4a5a85c51033 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -1530,8 +1530,11 @@ impl PlatformWindow for MacWindow { // There is no documented API for "Fill" action, so we'll just zoom the window window.zoom_(nil); } + "None" | "" => { + // Do nothing - respect the "Do Nothing" system setting + } _ => { - window.zoom_(nil); + // Default to doing nothing for unrecognized settings } } }