From 6112d633de4a20f24a9c77b4e525116ad60795b9 Mon Sep 17 00:00:00 2001 From: quickiwiki Date: Mon, 22 Sep 2025 15:52:11 +0300 Subject: [PATCH] VNC-269 Log incorrect rect types (#167) --- core/display.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/core/display.js b/core/display.js index fe765f3d..ced4f80f 100644 --- a/core/display.js +++ b/core/display.js @@ -1357,12 +1357,16 @@ export default class Display { break; default: secondaryScreenRects++; + if (a instanceof HTMLImageElement) { + Log.Warn("Wrong rect type: " + rect.type); + } else { if (this._screens[screenLocation.screenIndex].channel) { this._screens[screenLocation.screenIndex].channel.postMessage({ - eventType: 'rect', - rect: a, - screenLocationIndex: sI - }); + eventType: 'rect', + rect: a, + screenLocationIndex: sI + }); + } } } }