rfbLog("rawfb: turning off watch_selection\n");
if (! quiet) rfbLog("rawfb: turning off " "watch_selection\n");
void set_raw_fb_params(int restore) {	static int first = 1;	static int vo0, us0, sm0, ws0, wp0, wb0, na0, tn0;  	static int xr0, sb0;	static char *mc0;	/*	 * set turn off a bunch of parameters not compatible with 	 * -rawfb mode: 1) ignoring the X server 2) ignoring user input. 	 */		if (first) {		/* at least save the initial settings... */		vo0 = view_only;		ws0 = watch_selection;		wp0 = watch_primary;		wb0 = watch_bell;		na0 = no_autorepeat;		sb0 = use_solid_bg;		us0 = use_snapfb;		sm0 = using_shm;		tn0 = take_naps;		xr0 = xrandr;		mc0 = multiple_cursors_mode;		first = 0;	}	if (restore) {		view_only = vo0;		watch_selection = ws0;		watch_primary = wp0;		watch_bell = wb0;		no_autorepeat = na0;		use_solid_bg = sb0;		use_snapfb = us0;		using_shm = sm0;		take_naps = tn0;		xrandr = xr0;		multiple_cursors_mode = mc0;		if (! dpy && raw_fb_orig_dpy) {			dpy = XOpenDisplay(raw_fb_orig_dpy);			if (dpy) {				rfbLog("reopened DISPLAY: %s\n",				    raw_fb_orig_dpy);			} else {				rfbLog("WARNING: failed to reopen "				    "DISPLAY: %s\n", raw_fb_orig_dpy);			}		}		return;	}	rfbLog("set_raw_fb_params: modifying settings for -rawfb mode.\n");	if (got_noviewonly) {		/*		 * The user input parameters are not unset under		 * -noviewonly... this usage should be very rare		 * (i.e. rawfb but also send user input to the X		 * display, most likely using /dev/fb0 for some reason...)		 */		rfbLog("rawfb: -noviewonly mode: still sending mouse and\n");		rfbLog("rawfb:   keyboard input to the X DISPLAY!!\n");	} else {		/* Normal case: */		if (! view_only) {			rfbLog("rawfb: setting view_only\n");			view_only = 1;		}		if (watch_selection) {			rfbLog("rawfb: turning off watch_selection\n");			watch_selection = 0;		}		if (watch_primary) {			rfbLog("rawfb: turning off watch_primary\n");			watch_primary = 0;		}		if (watch_bell) {			rfbLog("rawfb: turning off watch_bell\n");			watch_bell = 0;		}		if (no_autorepeat) {			rfbLog("rawfb: turning off no_autorepeat\n");			no_autorepeat = 0;		}		if (use_solid_bg) {			rfbLog("rawfb: turning off use_solid_bg\n");			use_solid_bg = 0;		}		multiple_cursors_mode = strdup("arrow");	}	if (use_snapfb) {		rfbLog("rawfb: turning off use_snapfb\n");		use_snapfb = 0;	}	if (using_shm) {		rfbLog("rawfb: turning off using_shm\n");		using_shm = 0;	}	if (take_naps) {		rfbLog("rawfb: turning off take_naps\n");		take_naps = 0;	}	if (xrandr) {		rfbLog("rawfb: turning off xrandr\n");		xrandr = 0;	}}