aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
authorWilliam Sjöblom <wilsj@cendio.com>2022-01-19 11:22:07 +0100
committerWilliam Sjöblom <wilsj@cendio.com>2022-01-19 13:02:26 +0100
commita1d755a5f833c47d9c6fde4da1ec7e9e8631f1ce (patch)
tree6cb0647369fa0379c8a26b62a6f1738d4c8a9244 /vncviewer
parent88e96d645fec2c071640cb47da934657ea2ce058 (diff)
downloadtigervnc-a1d755a5f833c47d9c6fde4da1ec7e9e8631f1ce.tar.gz
tigervnc-a1d755a5f833c47d9c6fde4da1ec7e9e8631f1ce.zip
Always log screen layout if validation fails
Unconditionally log the erroneous screen layout if it fails to validate to simplify debugging.
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/DesktopWindow.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 12904188..9b086f4f 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -1392,15 +1392,17 @@ void DesktopWindow::remoteResize(int width, int height)
(layout == cc->server.screenLayout()))
return;
- char buffer[2048];
vlog.debug("Requesting framebuffer resize from %dx%d to %dx%d",
cc->server.width(), cc->server.height(), width, height);
- layout.print(buffer, sizeof(buffer));
- vlog.debug("%s", buffer);
+ char buffer[2048];
+ layout.print(buffer, sizeof(buffer));
if (!layout.validate(width, height)) {
vlog.error(_("Invalid screen layout computed for resize request!"));
+ vlog.error("%s", buffer);
return;
+ } else {
+ vlog.debug("%s", buffer);
}
cc->writer()->writeSetDesktopSize(width, height, layout);