- Electron version: 1.1.1
- Operating system: OSX 10.11.4 (El Capitan)

If you create a BrowserWindow and set BrowserWindowOptions.closable, calling app.quit does not close the application in OSX. AFAIK, it is expected that calling app.quit() closes the app irrespectively of how the windows are built.

The behavior is not observed in Windows, only OSX. To quit the app in OSX, you need go to the dock, right click on the app and select Quit **twice**.

atom/browser/native_window_views.cc
#if defined(OS_WIN)
  HMENU menu = GetSystemMenu(GetAcceleratedWidget(), false);
  if (closable) {
    EnableMenuItem(menu, SC_CLOSE, MF_BYCOMMAND | MF_ENABLED);
  } else {
    EnableMenuItem(menu, SC_CLOSE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
  }
#endif
}
bool NativeWindowViews::IsClosable() {
#if defined(OS_WIN)
  HMENU menu = GetSystemMenu(GetAcceleratedWidget(), false);
  MENUITEMINFO info;
  memset(&info, 0, sizeof(info));
  info.cbSize = sizeof(info);
  info.fMask = MIIM_STATE;
  if (!GetMenuItemInfo(menu, SC_CLOSE, false, &info)) {
    return false;
  }
  return !(info.fState & MFS_DISABLED);
#elif defined(USE_X11)
  return true;
#endif
}
void NativeWindowViews::SetAlwaysOnTop(bool top) {
  window_->SetAlwaysOnTop(top);
}
bool NativeWindowViews::IsAlwaysOnTop() {