[Copyright status: this file is in the public domain.] There are some calls which would generate protocol requests, except that the client already has all the relevant information on hand. A few of these are documented elsewhere. For See lx_map_visuals visual.txt lx_new_conn_private private-data.txt lx_get_private private-data.txt lx_set_private private-data.txt lx_text_extents_8 font-info.txt The rest are documented here for lack of anywhere else to document them. They return some attributes of the connection which are sent by the server during connection startup. Screens are numbered from 0 upward; for example, a display with 5 screens will number them 0 through 4. When applied to an LX_CONN that has failed (for example, if there has been a protocol error on the connection), these can fail. The values in this case are given as "on error". Additionally, for the calls that take a screen number, the "on error" value is returned in response to passing an out-of-range screen number. lx_nscreens ----------- int lx_nscreens(LX_CONN *c) Returns the number of screens available, -1 on error. lx_default_screen ----------------- int lx_default_screen(LX_CONN *c) Returns the default screen number, -1 on error. lx_min_keycode -------------- int lx_min_keycode(LX_CONN *c) Returns the minimum keycode value, -1 on error. lx_max_keycode -------------- int lx_max_keycode(LX_CONN *c) Returns the maximum keycode value, -1 on error. lx_root ------- LX_XID lx_root(LX_CONN *c, int n) Returns the root window of screen n, LX_WINDOW_None on error. lx_root_depth ------------- int lx_root_depth(LX_CONN *c, int n) Returns the depth of the root window of screen n, -1 on error. lx_root_visual -------------- LX_XID lx_root_visual(LX_CONN *c, int n) Returns the Visual for the root window of screen n, LX_VISUAL_None on error. lx_root_colormap ---------------- LX_XID lx_root_colormap(LX_CONN *c, int n) Returns the default colormap for screen n, LX_COLORMAP_None on error. lx_root_width ------------- unsigned int lx_root_width(LX_CONN *c, int n) Return width of screen n in pixels, 0 on error. lx_root_height -------------- unsigned int lx_root_height(LX_CONN *c, int n) Return height of screen n in pixels, 0 on error.