From 948ea35fbfb9b1b779ca7938bac826e225054687 Mon Sep 17 00:00:00 2001 From: Johan Kwarnmark Date: Tue, 12 May 2020 11:00:44 +0200 Subject: [PATCH] Printout all displays --- src/app/window-handler.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index c6eb84d9..238fec66 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -718,6 +718,12 @@ export class WindowHandler { this.addWindow(opts.winKey, this.screenPickerWindow); }); ipcMain.once('screen-source-selected', (_event, source) => { + const displays = electron.screen.getAllDisplays(); + logger.info('window-utils: displays.length: ' + displays.length); + for (let i = 0, len = displays.length; i < len; i++) { + logger.info('window-utils: display[' + i + ']: ' + JSON.stringify(displays[ i ])); + } + if (source != null) { logger.info(`window-handler: screen-source-selected`, source, id); if (isWindowsOS || isMac) {