Open window on first monitor upon first launch (fixes #21990)

This commit is contained in:
Benjamin Pasero
2017-03-07 07:44:58 +01:00
parent 503f8f516e
commit 5e9357bd51

View File

@@ -950,9 +950,9 @@ export class WindowsManager implements IWindowsMainService {
displayToUse = screen.getDisplayMatching(lastActive.getBounds());
}
// fallback to first display
// fallback to primary display or first display
if (!displayToUse) {
displayToUse = displays[0];
displayToUse = screen.getPrimaryDisplay() || displays[0];
}
}