Skip to content

Commit 8352c39

Browse files
fix: do not reposition traffic lights when fullscreened (electron#22492)
1 parent 39baf68 commit 8352c39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell/browser/native_window_mac.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,8 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {
517517
if (!traffic_light_position_.x() && !traffic_light_position_.y()) {
518518
return;
519519
}
520+
if (IsFullscreen())
521+
return;
520522

521523
NSWindow* window = window_;
522524
NSButton* close = [window standardWindowButton:NSWindowCloseButton];

0 commit comments

Comments
 (0)