- Electron version: v0.36.8
- Operating system: Windows 10

I'm trying to make a frameless window that still has the native functionality (double click to maximize, for example), but for some reason when I maximize using the double click or `BrowserWindow.maximize()` it shows a blue border like in this image:

![image](https://cloud.githubusercontent.com/assets/680445/13219983/9bcf47c8-d973-11e5-8f8d-9c05cacdd1b9.png)

However when I maximize by dragging the window to the top of the screen the border is still here but black. That's the same border that appears when the web contents lag during the resize.
Apparently [Discord](https://discordapp.com) "solved" this issue (their border is dark gray so it blends better with the application), but I don't know how they actually did it.

atom/browser/ui/views/menu_layout.cc
gfx::Size size = views::FillLayout::GetPreferredSize(host);
  if (!HasMenu(host))
    return size;
  size.set_height(size.height() + menu_height_);
  return size;
}
int MenuLayout::GetPreferredHeightForWidth(
    const views::View* host, int width) const {
  int height = views::FillLayout::GetPreferredHeightForWidth(host, width);
  if (!HasMenu(host))
    return height;
  return height + menu_height_;
}
bool MenuLayout::HasMenu(const views::View* host) const {
  return host->child_count() == 2;
}
}