> > All that to replace one function in xlib? Ewwwwww. look at the functions in Xlib. Xcb is X protocol. It's a very low level library. Xlib is a set of convenient functions, which xcb is not. i've given you all the functions that give you what you want (i think). If you find a better way to do what you want, please, let me know ;) Vincent