- 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/win/atom_desktop_window_tree_host_win.h
#ifndef ATOM_BROWSER_UI_WIN_ATOM_DESKTOP_WINDOW_TREE_HOST_WIN_H_
#define ATOM_BROWSER_UI_WIN_ATOM_DESKTOP_WINDOW_TREE_HOST_WIN_H_
#include <windows.h>
#include <vector>
#include "atom/browser/native_window.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
namespace atom {
class MessageHandlerDelegate;
class AtomDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin {
 public:
  AtomDesktopWindowTreeHostWin(
      MessageHandlerDelegate* delegate,
      views::internal::NativeWidgetDelegate* native_widget_delegate,
      views::DesktopNativeWidgetAura* desktop_native_widget_aura);
  ~AtomDesktopWindowTreeHostWin() override;
 protected:
  bool PreHandleMSG(
      UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) override;
 private:
  MessageHandlerDelegate* delegate_;  
  DISALLOW_COPY_AND_ASSIGN(AtomDesktopWindowTreeHostWin);
};
}  
#endif