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

When I maximize my [frameless](https://github.com/electron/electron/blob/master/docs/api/frameless-window.md) electron window a small part of the window in an unmaximized state is visible on a secondary monitor.

**Screenshot**
![electronbug](https://cloud.githubusercontent.com/assets/6634592/14762341/8849c728-09bb-11e6-85d8-de12db3fee2d.PNG)

You can visibly see the "line between the monitors" and you can see some really strange overhanging content that is over that line.

**Steps to reproduce**  
1. Open an electron app
2. Maximize the app on your secondary display
3. Look closely for the overflow onto your primary display

This might take a few times to trigger, it appears to do it about 70% of the time :confused: 

atom/browser/native_window_views.cc
window_type = "dialog";
    
    if (is_modal())
      state_atom_list.push_back(GetAtom("_NET_WM_STATE_MODAL"));
  }
  ui::SetAtomArrayProperty(GetAcceleratedWidget(), "_NET_WM_STATE", "ATOM",
                           state_atom_list);
  
  if (!window_type.empty())
    SetWindowType(GetAcceleratedWidget(), window_type);
#endif
  AddChildView(web_view_);
#if defined(OS_WIN)
  if (!has_frame()) {
    
    
    DWORD frame_style = WS_CAPTION;
    if (resizable_)
      frame_style |= WS_THICKFRAME;
    if (minimizable_)
      frame_style |= WS_MINIMIZEBOX;
    if (maximizable_)
      frame_style |= WS_MAXIMIZEBOX;
    
    if (!thick_frame_)
      frame_style &= ~(WS_THICKFRAME | WS_CAPTION);
    ::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, frame_style);
  }
  LONG ex_style = ::GetWindowLong(GetAcceleratedWidget(), GWL_EXSTYLE);