Skip to content

xcb_connect() always returns a non-NULL pointer #8

@Radvendii

Description

@Radvendii

I am very new to xcb, so I don't really know what I'm talking about. But in the xcb.h header file, the documentation for xcb_connect() says

 * Always returns a non-NULL pointer to a xcb_connection_t, even on failure.
 * Callers need to use xcb_connection_has_error() to check for failure.

In conn.zig, we have connect() checking for null values, but xcb_connection_has_error() is nowhere to be seen. Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions