diff options
Diffstat (limited to 'x11vnc/xinerama.c')
-rw-r--r-- | x11vnc/xinerama.c | 13 |
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); |