~ubuntu-branches/ubuntu/raring/cairo/raring

« back to all changes in this revision

Viewing changes to boilerplate/cairo-boilerplate-xcb.c

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-01-23 21:19:34 UTC
  • mfrom: (1.3.11) (28.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20130123211934-q9qb538ujcmkliic
Tags: 1.12.10-1ubuntu1
* Merge from Debian, remaining changes:
* debian/patches/server_side_gradients.patch:
  - Don't use server side gradients, most drivers don't handle those and
    are really slow
* debian/control: Add missing libxext-dev dependency to libcairo2-dev.
  Spotted by autopkgtest.
* debian/patches/git_evince_rendering_fix.patch:
  Backport GIT commit to fix a rendering bug in evince
* debian/control, debian/libcairo2.symbols, debian/rules:
  - Disable GL backend due to LP: #725434

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
static cairo_status_t
47
47
_cairo_boilerplate_xcb_handle_errors (xcb_target_closure_t *xtc)
48
48
{
49
 
    xcb_generic_event_t *ev;
50
 
 
51
 
    if ((ev = xcb_poll_for_event (xtc->c)) != NULL) {
 
49
    xcb_generic_event_t *ev = NULL;
 
50
 
 
51
    /* Ignore all MappingNotify events; those might happen without us causing them */
 
52
    do {
 
53
        free(ev);
 
54
        ev = xcb_poll_for_event(xtc->c);
 
55
    } while (ev != NULL && ev->response_type == XCB_MAPPING_NOTIFY);
 
56
 
 
57
    if (ev != NULL) {
52
58
        if (ev->response_type == CAIRO_XCB_ERROR) {
53
59
            xcb_generic_error_t *error = (xcb_generic_error_t *) ev;
54
60