fb = XGetImage(dpy, window, 0, 0, dpy_x, dpy_y, AllPlanes, ZPixmap);
fb = XGetImage_wr(dpy, window, 0, 0, dpy_x, dpy_y, AllPlanes, ZPixmap);
void nofb_hook(rfbClientPtr cl) {	static int loaded_fb = 0;	XImage *fb;	if (loaded_fb) {		return;	}	rfbLog("framebuffer requested in -nofb mode by client %s\n", cl->host);	fb = XGetImage(dpy, window, 0, 0, dpy_x, dpy_y, AllPlanes, ZPixmap);	main_fb = fb->data;	rfb_fb = main_fb;	screen->frameBuffer = rfb_fb;	loaded_fb = 1;	screen->displayHook = NULL;}