XChangeWindowAttributes(), XSetWindowBackground(), XSetWindowBackgroundPixmap(), XSetWindowBorder(), XSetWindowBorderPixmap(), XSetWindowColormap() - change window attributes
XChangeWindowAttributes (Display *display, Window w,
unsigned long valuemask,
XSetWindowAttributes *attributes)
XSetWindowBackground (Display *display, Window w,
unsigned long background_pixel)
XSetWindowBackgroundPixmap (Display *display, Window w,
Pixmap background_pixmap)
XSetWindowBorder (Display *display, Window w,
unsigned long border_pixel)
XSetWindowBorderPixmap (Display *display, Window w,
Pixmap border_pixmap)
XSetWindowColormap (Display *display, Window w,
Colormap colormap)
Depending on the valuemask, the XChangeWindowAttributes(3) function uses the window attributes in the XSetWindowAttributes structure to change the specified window attributes. Changing the background does not cause the window contents to be changed. To repaint the window and its background, use XClearWindow(3). Setting the border or changing the background such that the border tile origin changes causes the border to be repainted. Changing the background of a root window to None or ParentRelative restores the default background pixmap. Changing the border of a root window to CopyFromParent restores the default border pixmap. Changing the win-gravity does not affect the current position of the window. Changing the backing-store of an obscured window to WhenMapped or Always, or changing the backing-planes, backing-pixel, or save-under of a mapped window might have no immediate effect. Changing the colormap of a window (that is, defining a new map, not changing the contents of the existing map) generates a ColormapNotify event. Changing the colormap of a visible window might have no immediate effect on the screen because the map might not be installed (see XInstallColormap(3)). Changing the cursor of a root window to None restores the default cursor. Whenever possible, you are encouraged to share colormaps.
Multiple clients can select input on the same window. Their event masks are maintained separately. When an event is generated, it is reported to all interested clients. However, only one client at a time can select for SubstructureRedirectMask, ResizeRedirectMask, and ButtonPressMask. If a client attempts to select any of these event masks and some other client has already selected one, a BadAccess error results. There is only one do-not-propagate-mask for a window, not one per client.
XChangeWindowAttributes(3) can generate BadAccess, BadColor, BadCursor, BadMatch, BadPixmap, BadValue, and BadWindow errors.
The XSetWindowBackground(3) function sets the background of the window to the specified pixel value. Changing the background does not cause the window contents to be changed. XSetWindowBackground(3) uses a pixmap of undefined size filled with the pixel value you passed. If you try to change the background of an InputOnly window, a BadMatch error results.
XSetWindowBackground(3) can generate BadMatch and BadWindow errors.
The XSetWindowBackgroundPixmap(3) function sets the background pixmap of the window to the specified pixmap. The background pixmap can immediately be freed if no further explicit references to it are to be made. If ParentRelative is specified, the background pixmap of the window's parent is used, or on the root window, the default background is restored. If you try to change the background of an InputOnly window, a BadMatch error results. If the background is set to None, the window has no defined background.
XSetWindowBackgroundPixmap(3) can generate BadMatch, BadPixmap, and BadWindow errors.
The XSetWindowBorder(3) function sets the border of the window to the pixel value you specify. If you attempt to perform this on an InputOnly window, a BadMatch error results.
XSetWindowBorder(3) can generate BadMatch and BadWindow errors.
The XSetWindowBorderPixmap(3) function sets the border pixmap of the window to the pixmap you specify. The border pixmap can be freed immediately if no further explicit references to it are to be made. If you specify CopyFromParent, a copy of the parent window's border pixmap is used. If you attempt to perform this on an InputOnly window, a BadMatch error results.
XSetWindowBorderPixmap(3) can generate BadMatch, BadPixmap, and BadWindow errors.
The XSetWindowColormap(3) function sets the specified colormap of the specified window. The colormap must have the same visual type as the window, or a BadMatch error results.
XSetWindowColormap(3) can generate BadColor, BadMatch, and BadWindow errors.
Xlib