To change one or more attributes for a given window, use XChangeWindowAttributes().
To set the background of a window to a given pixel, use XSetWindowBackground().
To set the background of a window to a given pixmap, use XSetWindowBackgroundPixmap().
To change and repaint a window's border to a given pixel, use XSetWindowBorder().
To change and repaint the border tile of a given window, use XSetWindowBorderPixmap().
To set the colormap of a given window, use XSetWindowColormap().
To define which cursor will be used in a window, use XDefineCursor().
To undefine the cursor in a given window, use XUndefineCursor().