XTRAP_GrabControl_wr(in_dpy, False);
if (change) { XTRAP_GrabControl_wr(in_dpy, False); }
void disable_grabserver(Display *in_dpy) {	int ok = 0;	static int didmsg = 0;	if (! xtrap_input) {		if (XTestGrabControl_wr(in_dpy, True)) {			XTRAP_GrabControl_wr(in_dpy, False);			if (! didmsg) {				rfbLog("GrabServer control via XTEST.\n"); 				didmsg = 1;			}			ok = 1;		} else {			if (XTRAP_GrabControl_wr(in_dpy, True)) {				ok = 1;				if (! didmsg) {					rfbLog("Using DEC-XTRAP for protection"					    " from XGrabServer.\n");					didmsg = 1;				}			}		}	} else {		if (XTRAP_GrabControl_wr(in_dpy, True)) {			XTestGrabControl_wr(in_dpy, False);			if (! didmsg) {				rfbLog("GrabServer control via DEC-XTRAP.\n"); 				didmsg = 1;			}			ok = 1;		} else {			if (XTestGrabControl_wr(in_dpy, True)) {				ok = 1;				if (! didmsg) {					rfbLog("DEC-XTRAP XGrabServer "					    "protection not available, "					    "using XTEST.\n");					didmsg = 1;				}			}		}	}	if (! ok && ! didmsg) {		rfbLog("No XTEST or DEC-XTRAP protection from XGrabServer.\n");		rfbLog("Deadlock if your window manager calls XGrabServer!!\n");	}}