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
This commit is contained in:
@@ -1530,8 +1530,11 @@ impl PlatformWindow for MacWindow {
|
|||||||
// There is no documented API for "Fill" action, so we'll just zoom the window
|
// There is no documented API for "Fill" action, so we'll just zoom the window
|
||||||
window.zoom_(nil);
|
window.zoom_(nil);
|
||||||
}
|
}
|
||||||
|
"None" | "" => {
|
||||||
|
// Do nothing - respect the "Do Nothing" system setting
|
||||||
|
}
|
||||||
_ => {
|
_ => {
|
||||||
window.zoom_(nil);
|
// Default to doing nothing for unrecognized settings
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user