if (subwin) {
if (subwin && valid_window(subwin)) {
static char *choose_title(char *display) {	static char title[(MAXN+10)];		strcpy(title, "x11vnc");	if (display == NULL) {		display = getenv("DISPLAY");	}	if (display == NULL) {		return title;	}	title[0] = '\0';	if (display[0] == ':') {		if (this_host() != NULL) {			strncpy(title, this_host(), MAXN - strlen(title));		}	}	strncat(title, display, MAXN - strlen(title));	if (subwin) {		char *name;		if (XFetchName(dpy, subwin, &name)) {			strncat(title, " ",  MAXN - strlen(title));			strncat(title, name, MAXN - strlen(title));		}	}	return title;}