mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Electron-197 - Added a check to only return screen sources if desktop composition is disabled on Windows
This commit is contained in:
parent
6d1ae6440e
commit
ad307d406f
@ -12,7 +12,8 @@
|
|||||||
// renderer process, this will have to do. See github issue posted here to
|
// renderer process, this will have to do. See github issue posted here to
|
||||||
// electron: https://github.com/electron/electron/issues/9312
|
// electron: https://github.com/electron/electron/issues/9312
|
||||||
|
|
||||||
const { ipcRenderer } = require('electron');
|
const { ipcRenderer, remote } = require('electron');
|
||||||
|
const { isMac } = require('../utils/misc');
|
||||||
|
|
||||||
let nextId = 0;
|
let nextId = 0;
|
||||||
let includes = [].includes;
|
let includes = [].includes;
|
||||||
@ -52,6 +53,17 @@ function getSources(options, callback) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isMac) {
|
||||||
|
/**
|
||||||
|
* Sets the captureWindow to false if Desktop composition
|
||||||
|
* is disabled otherwise true
|
||||||
|
*
|
||||||
|
* Setting captureWindow to false returns only screen sources
|
||||||
|
* @type {boolean}
|
||||||
|
*/
|
||||||
|
captureWindow = remote.systemPreferences.isAeroGlassEnabled();
|
||||||
|
}
|
||||||
|
|
||||||
id = getNextId();
|
id = getNextId();
|
||||||
ipcRenderer.send('ELECTRON_BROWSER_DESKTOP_CAPTURER_GET_SOURCES', captureWindow, captureScreen, updatedOptions.thumbnailSize, id);
|
ipcRenderer.send('ELECTRON_BROWSER_DESKTOP_CAPTURER_GET_SOURCES', captureWindow, captureScreen, updatedOptions.thumbnailSize, id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user