SDA-1897 Unify screenshare indicator frame handling for window/fullscreen

This commit is contained in:
Mattias Gustavsson 2020-03-20 09:00:31 +01:00
parent e94fb41e47
commit 46283a3b64

View File

@ -604,7 +604,7 @@ export class WindowHandler {
if (type === 'window') {
const hwnd = source.id.split(':')[1];
this.execCmd(this.screenShareIndicatorFrameUtil, [ hwnd ]);
} else if (type === 'screen') {
} else if (isMac && type === 'screen') {
const dispId = source.id.split(':')[1];
this.execCmd(this.screenShareIndicatorFrameUtil, [ dispId ]);
}
@ -802,7 +802,9 @@ export class WindowHandler {
displays.forEach((element) => {
if (displayId === element.id.toString()) {
logger.info(`window-handler: element:`, element);
if (isLinux) {
if (isWindowsOS) {
this.execCmd(this.screenShareIndicatorFrameUtil, [ displayId ]);
} else if (isLinux) {
this.createScreenSharingFrameWindow('screen-sharing-frame',
element.workArea.width,
element.workArea.height,