mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
Correctly check error
This commit is contained in:
parent
ba0b2379a6
commit
fe8aa55fdc
1 changed files with 3 additions and 2 deletions
|
@ -632,10 +632,11 @@ int main ( int argc, char *argv[] )
|
|||
xcb->screen = xcb_aux_get_screen ( xcb->connection, xcb->screen_nbr );
|
||||
|
||||
xcb_intern_atom_cookie_t *ac = xcb_ewmh_init_atoms ( xcb->connection, &xcb->ewmh );
|
||||
xcb_generic_error_t **errors = NULL;
|
||||
xcb_ewmh_init_atoms_replies ( &xcb->ewmh, ac, errors );
|
||||
xcb_generic_error_t *errors = NULL;
|
||||
xcb_ewmh_init_atoms_replies ( &xcb->ewmh, ac, &errors );
|
||||
if ( errors ) {
|
||||
fprintf ( stderr, "Failed to create EWMH atoms\n" );
|
||||
free(errors);
|
||||
}
|
||||
|
||||
if ( xkb_x11_setup_xkb_extension ( xcb->connection, XKB_X11_MIN_MAJOR_XKB_VERSION, XKB_X11_MIN_MINOR_XKB_VERSION,
|
||||
|
|
Loading…
Add table
Reference in a new issue