Browse Source

Only show traffic lights with full system decorations.

Fixes second part of #10650.
pull/10677/head
Steven Kirk 4 years ago
parent
commit
142547a23f
  1. 3
      native/Avalonia.Native/src/OSX/WindowImpl.mm

3
native/Avalonia.Native/src/OSX/WindowImpl.mm

@ -614,7 +614,8 @@ void WindowImpl::UpdateStyle() {
}
bool wantsChrome = (_extendClientHints & AvnSystemChrome) || (_extendClientHints & AvnPreferSystemChrome);
bool hasTrafficLights = _isClientAreaExtended ? wantsChrome : _decorations == SystemDecorationsFull;
bool hasTrafficLights = (_decorations == SystemDecorationsFull) &&
(_isClientAreaExtended ? wantsChrome : true);
NSButton* closeButton = [Window standardWindowButton:NSWindowCloseButton];
NSButton* miniaturizeButton = [Window standardWindowButton:NSWindowMiniaturizeButton];

Loading…
Cancel
Save