Connection setup field "num visualtypes" differ from number actual getting records

2015-12-01 Thread Andrzej Borucki
In standard documentation xproto\x11protocol.pdf on page 141 is described connection setup reply and field "number of visualtypes". It was 119 but If i read whole reply, is 122 visualtypes (Commands xdpyinfo show 120). Last three records have small visual-id (1,15,and 80) whereas other have about 3

I can't invalidate

2015-12-08 Thread Andrzej Borucki
I try invalidate window using XCB library. I draw text and after second (have timer), changed text and send message: void invalidate() { xcb_expose_event_t invalidate_event; invalidate_event.window = window; invalidate_event.response_type = XCB_EXPOSE; invalidate_event.x = 0; i