Allow compact frameless auxiliary windows (#329485)

This commit is contained in:
Megan Rogge
2026-08-07 01:32:12 +00:00
committed by GitHub
parent 0e03962871
commit 4e81e3782b
2 changed files with 10 additions and 5 deletions
@@ -98,9 +98,14 @@ export class AuxiliaryWindow extends BaseWindow implements IAuxiliaryWindow {
// Lifecycle
this.lifecycleMainService.registerAuxWindow(this);
// Hide macOS traffic light buttons for frameless windows
if (isMacintosh && options?.frame === false) {
window.setWindowButtonVisibility(false);
// Allow frameless windows to size down to their content
if (options?.frame === false) {
window.setMinimumSize(1, 1);
// Hide macOS traffic light buttons
if (isMacintosh) {
window.setWindowButtonVisibility(false);
}
}
// Disable resizing for non-resizable windows
@@ -243,8 +243,8 @@ export function defaultBrowserWindowOptions(accessor: ServicesAccessor, windowSt
options.frame = false;
options.titleBarStyle = undefined;
options.titleBarOverlay = undefined;
options.minWidth = undefined;
options.minHeight = undefined;
options.minWidth = 1;
options.minHeight = 1;
}
if (overrides?.backgroundColor) {