summaryrefslogtreecommitdiffstats
path: root/x11vnc/util.c
diff options
context:
space:
mode:
authorrunge <runge>2006-12-29 07:21:37 +0000
committerrunge <runge>2006-12-29 07:21:37 +0000
commit833f06025fbd2fa8d4d83ccf8ab068c8060663de (patch)
tree1b20fdc2575d12b66e28d6e608dd54b3cacb2766 /x11vnc/util.c
parente4a397ed13a2c6eb9d2da7870165e7ecdc67f461 (diff)
downloadlibtdevnc-833f06025fbd2fa8d4d83ccf8ab068c8060663de.tar.gz
libtdevnc-833f06025fbd2fa8d4d83ccf8ab068c8060663de.zip
x11vnc -ncache on by default for beta test. fix -nofb & -rawfb modes.
Diffstat (limited to 'x11vnc/util.c')
-rw-r--r--x11vnc/util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/x11vnc/util.c b/x11vnc/util.c
index 7b030d7..5ba621c 100644
--- a/x11vnc/util.c
+++ b/x11vnc/util.c
@@ -548,8 +548,8 @@ char *choose_title(char *display) {
}
strncat(title, display, MAXN - strlen(title));
if (subwin && dpy && valid_window(subwin, NULL, 0)) {
- char *name = NULL;
#if !NO_X11
+ char *name = NULL;
if (XFetchName(dpy, subwin, &name)) {
if (name) {
strncat(title, " ", MAXN - strlen(title));
@@ -557,8 +557,6 @@ char *choose_title(char *display) {
free(name);
}
}
-#else
- if (!name) {}
#endif /* NO_X11 */
}
return title;