From 31e67788a2de0081a8fec4377a95ab604f39ea64 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 11 Jul 2016 16:44:42 +0900 Subject: [PATCH] mac: Do not change window size when in fullscreen --- atom/browser/native_window_mac.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 756d2487d2ed..7d627208a5a3 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -737,6 +737,10 @@ bool NativeWindowMac::IsFullscreen() const { } void NativeWindowMac::SetBounds(const gfx::Rect& bounds, bool animate) { + // Do nothing if in fullscreen mode. + if (IsFullscreen()) + return; + // Check size constraints since setFrame does not check it. gfx::Size size = bounds.size(); size.SetToMax(GetMinimumSize());