fix: do not reposition traffic lights when fullscreened (#22492)

This commit is contained in:
Samuel Attard 2020-03-03 14:22:32 -08:00 committed by GitHub
parent 39baf68790
commit 8352c39c65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -517,6 +517,8 @@ void NativeWindowMac::RepositionTrafficLights() {
if (!traffic_light_position_.x() && !traffic_light_position_.y()) {
return;
}
if (IsFullscreen())
return;
NSWindow* window = window_;
NSButton* close = [window standardWindowButton:NSWindowCloseButton];