summaryrefslogtreecommitdiffstats
path: root/x11vnc/xinerama.c
diff options
context:
space:
mode:
authorrunge <runge@karlrunge.com>2010-04-18 19:37:37 -0400
committerrunge <runge@karlrunge.com>2010-04-18 19:37:37 -0400
commitb74c8f4241ec8c3d972ee97d0ce9a399ddd09ce1 (patch)
treec8c8aaec90fd51a10790795030777b2dda548fe7 /x11vnc/xinerama.c
parent2a8ba97ec5b0f7fbfcfc8adab6732a95e95c7204 (diff)
downloadlibtdevnc-b74c8f42.tar.gz
libtdevnc-b74c8f42.zip
Improvements to demo scripts. Alias -coe for -connect_or_exit. Fix HAVE_V4L2. Warn no Xvfb, Xdummy, or Xvnc. Xinerama screens.
Diffstat (limited to 'x11vnc/xinerama.c')
-rw-r--r--x11vnc/xinerama.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/x11vnc/xinerama.c b/x11vnc/xinerama.c
index 70445c9..001e2ca 100644
--- a/x11vnc/xinerama.c
+++ b/x11vnc/xinerama.c
@@ -372,9 +372,7 @@ static void initialize_xinerama (void) {
/* n.b. change to XineramaGetData() someday */
xineramas = XineramaQueryScreens(dpy, &n);
- if (verbose) {
- rfbLog("Xinerama: number of sub-screens: %d\n", n);
- }
+ rfbLog("Xinerama: number of sub-screens: %d\n", n);
if (! use_xwarppointer && ! got_noxwarppointer && n > 1) {
rfbLog("Xinerama: enabling -xwarppointer mode to try to correct\n");
@@ -384,11 +382,8 @@ static void initialize_xinerama (void) {
}
if (n == 1) {
- if (verbose) {
- rfbLog("Xinerama: no blackouts needed (only one"
- " sub-screen)\n");
- rfbLog("\n");
- }
+ rfbLog("Xinerama: no blackouts needed (only one sub-screen)\n");
+ rfbLog("\n");
XFree_wr(xineramas);
X_UNLOCK;
return; /* must be OK w/o change */
@@ -405,6 +400,8 @@ static void initialize_xinerama (void) {
w = sc->width;
h = sc->height;
+ rfbLog("Xinerama: sub-screen[%d] %dx%d+%d+%d\n", i, w, h, x, y);
+
tmp_region = sraRgnCreateRect(x, y, x + w, y + h);
sraRgnSubtract(black_region, tmp_region);