From 0b3d9571e526aa40c7be06cb943cc43874648d34 Mon Sep 17 00:00:00 2001 From: Johan Kwarnmark Date: Tue, 12 May 2020 12:07:36 +0200 Subject: [PATCH] if display_id is empty we get it from getalldisplays --- src/app/window-handler.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/window-handler.ts b/src/app/window-handler.ts index 238fec66..79349213 100644 --- a/src/app/window-handler.ts +++ b/src/app/window-handler.ts @@ -739,7 +739,13 @@ export class WindowHandler { if (source.display_id !== '') { this.execCmd(this.screenShareIndicatorFrameUtil, [ source.display_id ]); } else { - this.execCmd(this.screenShareIndicatorFrameUtil, [ '0' ]); + const dispId = source.id.split(':')[1]; + const keyId = 'id'; + + logger.info('window-utils: dispId: ' + dispId); + logger.info('window-utils: displays [' + dispId + '] [id]: ' + displays [dispId] [ keyId ]); + + this.execCmd(this.screenShareIndicatorFrameUtil, [ displays [dispId] [ keyId ].toString() ]); } } }