Florent, The other package you may be interested in using instead of low-level X is Cairo (cairographics.org), which is a high-level rendering library usable with both Gtk+ and Qt. This is what to use if you need to do custom drawing, instead of Xlib or XCB. Bart