- Electron version: `1.2.3`
- Operating system: `Windows`

``` js
remote.getCurrentWindow().setMaximumSize(300, 300);
remote.getCurrentWindow().setMinimumSize(50, 50);
console.info('No Errors');
```

When combining remote Minimum and Maximum size calls the maximum size fails to set.

If you change the sample code to be

``` js
setTimeout(() => remote.getCurrentWindow().setMaximumSize(300, 300), 200);
remote.getCurrentWindow().setMinimumSize(50, 50);
console.info('No Errors');
```

So we wait a bit (make the two calls not at the same time) then the maximum size is set as expected

atom/browser/native_window.cc
WindowList::WindowCloseCancelled(this);
  
  window_unresposive_closure_.Cancel();
}
void NativeWindow::DidFirstVisuallyNonEmptyPaint() {
  if (IsVisible())
    return;
  
  
  const auto view = web_contents()->GetRenderWidgetHostView();
  view->Show();
  view->SetSize(GetContentSize());
  
  base::MessageLoop::current()->PostTask(
      FROM_HERE,
      base::Bind(&NativeWindow::NotifyReadyToShow, GetWeakPtr()));
}
bool NativeWindow::OnMessageReceived(const IPC::Message& message) {
  bool handled = true;
  IPC_BEGIN_MESSAGE_MAP(NativeWindow, message)
    IPC_MESSAGE_HANDLER(AtomViewHostMsg_UpdateDraggableRegions,
                        UpdateDraggableRegions)
    IPC_MESSAGE_UNHANDLED(handled = false)
  IPC_END_MESSAGE_MAP()
  return handled;
}
void NativeWindow::UpdateDraggableRegions(