diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2010-03-01 01:23:17 +0200 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2010-03-01 01:23:17 +0200 |
commit | 1a7ba1a8061c373cd66d15b3a1c8dfada92745ef (patch) | |
tree | 0003bd7906e38a3bde07c63e334010e33450a0c0 /boilerplate/cairo-boilerplate-xcb.c | |
parent | 5b7f4bb241f3191c1589cd714f373719efded56e (diff) |
xcb: Update minimum required versions of libxcb.
The new xcb surface uses xcb_writev() and xcb_take_socket()
which were introduced in libxcb 1.1.92. The boilerplate
in turn uses the major_code and minor_code fields in
xcb_generic_error_t, which were introduced in 1.4.
Diffstat (limited to 'boilerplate/cairo-boilerplate-xcb.c')
-rw-r--r-- | boilerplate/cairo-boilerplate-xcb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-xcb.c b/boilerplate/cairo-boilerplate-xcb.c index ed173e68..0e5c3b94 100644 --- a/boilerplate/cairo-boilerplate-xcb.c +++ b/boilerplate/cairo-boilerplate-xcb.c @@ -564,9 +564,15 @@ _cairo_boilerplate_xcb_finish_surface (cairo_surface_t *surface) if (ev->response_type == 0 /* trust me! */) { xcb_generic_error_t *error = (xcb_generic_error_t *) ev; +#if XCB_GENERIC_ERROR_HAS_MAJOR_MINOR_CODES fprintf (stderr, "Detected error during xcb run: %d major=%d, minor=%d\n", error->error_code, error->major_code, error->minor_code); +#else + fprintf (stderr, + "Detected error during xcb run: %d\n", + error->error_code); +#endif free (error); status = CAIRO_STATUS_WRITE_ERROR; |