To set the subwindow mode of a given GC, use XSetSubwindowMode().
To set the graphics-exposures flag of a given GC, use XSetGraphicsExposures().