mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
mac: Do not change window size when in fullscreen
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user