SDA-1743 Use display id to identify screen instead of display position

This commit is contained in:
Mattias Gustavsson 2020-02-11 10:16:12 +01:00
parent 8c88b44445
commit 0c597c1cdd
2 changed files with 2 additions and 4 deletions

View File

@ -135,7 +135,7 @@
},
"optionalDependencies": {
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.5",
"screen-share-indicator-frame": "git+https://github.com/symphonyoss/ScreenShareIndicatorFrame.git#v1.0.0",
"screen-share-indicator-frame": "git+https://github.com/symphonyoss/ScreenShareIndicatorFrame.git#v1.1.0",
"swift-search": "2.0.1"
}
}

View File

@ -785,9 +785,7 @@ export class WindowHandler {
if (displayId === element.id.toString()) {
if (isWindowsOS) {
logger.info(`window-handler: element:`, element);
const winX: string = element.bounds.x.toString();
const winY: string = element.bounds.y.toString();
this.execCmd(this.screenShareIndicatorFrameUtil, [ winX, winY ]);
this.execCmd(this.screenShareIndicatorFrameUtil, [ displayId ]);
} else {
this.createScreenSharingFrameWindow('screen-sharing-frame',
element.workArea.width,