XSetWindowBorder()XSetWindowBorder()Name
XSetWindowBorder – change a window border pixel value attribute and
repaint the border.
Synopsis
XSetWindowBorder(display, w, border_pixel)
Display *display;
Window w;
unsigned long border_pixel;
Arguments
display Specifies a connection to an X server; returned from XOpenDis‐
play().
w Specifies the window ID. Must be an InputOutput window.
border_pixel
Specifies the colormap entry with which the server will paint
the border.
DescriptionXSetWindowBorder() sets the border_pixel attribute of window w to a
pixel value, and repaints the border. The border is also automatically
repainted after Expose events.
Use XSetWindowBorderPixmap() to create a tiled border. On top-level
windows, the window manager often resets the border, so applications
should not depend on their settings.
For more information, see Volume One, Chapter 4, Window Attributes.
Errors
BadMatch Setting border of InputOnly window.
BadWindow
See AlsoXChangeWindowAttributes(), XGetGeometry(), XGetWindowAttributes(),
XSetWindowBackground(), XSetWindowBackgroundPixmap(), XSetWindowBorder‐
Pixmap().
Xlib - Window Attributes XSetWindowBorder()