summaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/XserverDesktop.cc
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-01-26 15:15:47 +0100
committerPierre Ossman <ossman@cendio.se>2015-01-26 15:15:47 +0100
commit9018af44dadebb5ed50ba9336007fc9da653a9a0 (patch)
tree72679584f53464b51dc926a1da44540d6feb95c8 /unix/xserver/hw/vnc/XserverDesktop.cc
parent5789572d977a77896efbeaf53c055904057f29c3 (diff)
downloadtigervnc-9018af44dadebb5ed50ba9336007fc9da653a9a0.tar.gz
tigervnc-9018af44dadebb5ed50ba9336007fc9da653a9a0.zip
More debug logging for screen layout changes
Diffstat (limited to 'unix/xserver/hw/vnc/XserverDesktop.cc')
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index 3774b7f6..b8988131 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -653,6 +653,12 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
if (vncRandRGetOutputCount(screenIndex) == 0)
return rfb::resultProhibited;
+ char buffer[2048];
+ vlog.debug("Got request for framebuffer resize to %dx%d",
+ fb_width, fb_height);
+ layout.print(buffer, sizeof(buffer));
+ vlog.debug("%s", buffer);
+
/*
* First check that we don't have any active clone modes. That's just
* too messy to deal with.
@@ -667,6 +673,8 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height,
/* Try to create more outputs if needed... (only works on Xvnc) */
if (layout.num_screens() > availableOutputs) {
+ vlog.debug("Insufficient screens. Need to create %d more.",
+ layout.num_screens() - availableOutputs);
ret = vncRandRCreateOutputs(screenIndex,
layout.num_screens() - availableOutputs);
if (ret < 0) {