summaryrefslogtreecommitdiff
path: root/src/xcb.h
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <esm@eduardosm.net>2020-03-02 18:59:45 +0100
committerEduardo Sánchez Muñoz <esm@eduardosm.net>2020-03-02 19:01:41 +0100
commit704e0a91b1dece9a4cce7cfe8beaeb86a5e14267 (patch)
treefbfb18809bedcb24dceb8a302d8512ad52c066f2 /src/xcb.h
parent4b40b44cb6d088b6ffa2fb5cf3ad8f12da588cef (diff)
Use the 'present' field to properly check that the XC-MISC
extension is available in xcb_generate_id. Also document the returned value when xcb_generate_id fails.
Diffstat (limited to 'src/xcb.h')
-rw-r--r--src/xcb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xcb.h b/src/xcb.h
index dd7f532..09e123e 100644
--- a/src/xcb.h
+++ b/src/xcb.h
@@ -591,7 +591,7 @@ xcb_connection_t *xcb_connect_to_display_with_auth_info(const char *display, xcb
/**
* @brief Allocates an XID for a new object.
* @param c The connection.
- * @return A newly allocated XID.
+ * @return A newly allocated XID, or -1 on failure.
*
* Allocates an XID for a new object. Typically used just prior to
* various object creation functions, such as xcb_create_window.