Replace struct rect with xcb_rectangle_t