aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-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);