fix xcb sample

this corrects the sample