summaryrefslogtreecommitdiffstats
path: root/x11vnc/xinerama.c
diff options
context:
space:
mode:
authorrunge <runge>2006-09-17 18:08:23 +0000
committerrunge <runge>2006-09-17 18:08:23 +0000
commitdba5e098767b71bb017fa191cc3f07dc68437655 (patch)
tree2cc3de51656fb733b93baaa0b7a02a058801cd3c /x11vnc/xinerama.c
parent31d3a9fa8d081c573822fd8b66b9cdf70092c9d2 (diff)
downloadlibtdevnc-dba5e098767b71bb017fa191cc3f07dc68437655.tar.gz
libtdevnc-dba5e098767b71bb017fa191cc3f07dc68437655.zip
x11vnc: -verbose, -connect_or_exit, -rfbport 0, print out SSL cert.
Diffstat (limited to 'x11vnc/xinerama.c')
-rw-r--r--x11vnc/xinerama.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/x11vnc/xinerama.c b/x11vnc/xinerama.c
index ddc2da7..8582dab 100644
--- a/x11vnc/xinerama.c
+++ b/x11vnc/xinerama.c
@@ -243,14 +243,18 @@ static void initialize_xinerama (void) {
RAWFB_RET_VOID
if (! XineramaQueryExtension(dpy, &ev, &er)) {
- rfbLog("Xinerama: disabling: display does not support it.\n");
+ if (verbose) {
+ rfbLog("Xinerama: disabling: display does not support it.\n");
+ }
xinerama = 0;
xinerama_present = 0;
return;
}
if (! XineramaIsActive(dpy)) {
/* n.b. change to XineramaActive(dpy, window) someday */
- rfbLog("Xinerama: disabling: not active on display.\n");
+ if (verbose) {
+ rfbLog("Xinerama: disabling: not active on display.\n");
+ }
xinerama = 0;
xinerama_present = 0;
return;
@@ -259,11 +263,15 @@ static void initialize_xinerama (void) {
/* n.b. change to XineramaGetData() someday */
xineramas = XineramaQueryScreens(dpy, &n);
- rfbLog("Xinerama: number of sub-screens: %d\n", n);
+ if (verbose) {
+ rfbLog("Xinerama: number of sub-screens: %d\n", n);
+ }
if (n == 1) {
- rfbLog("Xinerama: no blackouts needed (only one"
- " sub-screen)\n");
+ if (verbose) {
+ rfbLog("Xinerama: no blackouts needed (only one"
+ " sub-screen)\n");
+ }
XFree(xineramas);
return; /* must be OK w/o change */
}