title: Electron browser window
body: <p>I have 2 <code>BrowserWindow</code> instances in my electron application, <code>mainWindow</code> and <code>secondaryWindow</code>. There is a button in <code>mainWindow</code> which when clicked should open <code>secondaryWindow</code>.</p>
  
  <p>Now my issue is that I don't want to be able to click on anything in the <code>mainWindow</code> until the <code>secondaryWindow</code> is closed.</p>
  
  <p>The closest I could get was to use <code>mainWindow.hide()</code> but this just completely hides the window, I want to still see the <code>mainWindow</code> while the <code>secondaryWindow</code> is active but it should be disabled / inactive.</p>
  
  <p>Any suggestions?</p>