Merge pull request #881 from mattias-symphony/master

fix: Enabled window tracking for screen share indicator frame on mac
This commit is contained in:
mattias-symphony 2020-03-02 10:58:09 +01:00 committed by GitHub
commit 2495e591de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@
},
"optionalDependencies": {
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.6",
"screen-share-indicator-frame": "git+https://github.com/symphonyoss/ScreenShareIndicatorFrame.git#v1.2.0",
"screen-share-indicator-frame": "git+https://github.com/symphonyoss/ScreenShareIndicatorFrame.git#v1.4.0",
"swift-search": "2.0.1"
}
}

View File

@ -600,7 +600,7 @@ export class WindowHandler {
ipcMain.once('screen-source-selected', (_event, source) => {
if (source != null) {
logger.info(`window-handler: screen-source-selected`, source, id);
if (isWindowsOS) {
if (isWindowsOS || isMac) {
const type = source.id.split(':')[0];
if (type === 'window') {
const hwnd = source.id.split(':')[1];