Skip to content

Commit 83fd972

Browse files
fix(screenshare): screen-share tracker display on Win-OS
1 parent fcdcc57 commit 83fd972

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jitsi-meet-electron-utils",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Utilities for jitsi-meet-electron project",
55
"main": "index.js",
66
"scripts": {

screensharing/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const SCREEN_SHARE_EVENTS_CHANNEL = 'jitsi-screen-sharing-marker';
99
*/
1010
const TRACKER_SIZE = {
1111
height: 40,
12-
width: 490.
12+
width: 530.
1313
};
1414

1515
/**

screensharing/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ class ScreenShareMainHook {
7272
this._screenShareTracker = new electron.BrowserWindow({
7373
height: TRACKER_SIZE.height,
7474
width: TRACKER_SIZE.width,
75-
x:(display.bounds.width - TRACKER_SIZE.width) / 2,
76-
y:display.bounds.height - TRACKER_SIZE.height - 10,
75+
x:(display.workArea.width - TRACKER_SIZE.width) / 2,
76+
y:display.workArea.height - TRACKER_SIZE.height - 5,
7777
transparent: true,
7878
minimizable: true,
7979
maximizable: false,
8080
resizable: false,
8181
alwaysOnTop: true,
8282
fullscreen: false,
8383
fullscreenable: false,
84-
skipTaskbar: true,
84+
skipTaskbar: false,
8585
frame: false,
8686
show: false,
8787
webPreferences: {

screensharing/screenSharingTracker.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
color: #282a2f;
2929
height: 28px;
3030
margin-right: 16px;
31+
-webkit-app-region: no-drag;
3132
}
3233

3334
#text-container {
@@ -45,6 +46,7 @@
4546
color: #ababab;
4647
font-family:Arial, Helvetica, sans-serif;
4748
font-size: 13px;
49+
-webkit-app-region: no-drag;
4850
}
4951

5052
#sharing-identity {

0 commit comments

Comments
 (0)