mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: do not reposition traffic lights when fullscreened (#22508)
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
This commit is contained in:
@@ -521,6 +521,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];
|
||||
|
||||
Reference in New Issue
Block a user