1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Added new desktop display location/size command support.

This commit is contained in:
Ylian Saint-Hilaire 2021-05-16 12:44:49 -07:00
parent e97e844c82
commit ae936654a4
2 changed files with 19 additions and 1 deletions

View file

@ -271,6 +271,12 @@ var CreateAgentRemoteDesktop = function (canvasid, scrolldiv) {
console.log('KVM: ' + str.substring(1));
}
break;
case 82: // DISPLAY LOCATION & SIZE
if ((cmdsize < 4) || (((cmdsize - 4) % 10) != 0)) break;
var screenCount = ((cmdsize - 4) / 10), screenInfo = {}, ptr = 4;
for (var i = 0; i < screenCount; i++) { screenInfo[(view[ptr + 0] << 8) + view[ptr + 1]] = { x: ((view[ptr + 2] << 8) + view[ptr + 3]), y: ((view[ptr + 4] << 8) + view[ptr + 5]), w: ((view[ptr + 6] << 8) + view[ptr + 7]), h: ((view[ptr + 8] << 8) + view[ptr + 9]) }; ptr += 10; }
console.log('ScreenInfo', JSON.stringify(screenInfo, null, 2));
break;
case 87: // MNG_KVM_INPUT_LOCK
if (cmdsize != 5) break;
if ((obj.RemoteInputLock == null) || (obj.RemoteInputLock !== (view[4] != 0))) {