BrowserWindow with parent and modal


I created and displayed a modal window with mainWin (the main browserwindow) as parent

  var pop = new BrowserWindow({
    modal: true,
    parent: mainWin,
    'node-integration': true, transparent: false, frame: true, taskbar: false

When I close the modal window, all the whole mainWin seems to be reloaded (screen flickering + redraw)
Why ?


Ok, the issue appears only when debugging with vscode (The IDE does a whole refresh)