we have created a window with red color in display1, we want to
replicate all the things from display1 to display2 by querying the
details from
display1.

I tried using XCreateWindow, XCreatePixmap, XGetImage and XPutImage.

But the image was completely blurred.

Please suggest me how to do these things.