Added window tracking to screen share indicator frame for Mac

This commit is contained in:
Mattias Gustavsson 2020-02-28 08:29:21 +01:00
parent f287c76549
commit 897febcfe0
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@
}, },
"optionalDependencies": { "optionalDependencies": {
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.6", "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.3.0",
"swift-search": "2.0.1" "swift-search": "2.0.1"
} }
} }

View File

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