xcb is hardly unused, but not everyones first approach is to put helper functions upstream (quite how many people use xcb remains anyones guess ofcource). But if you think it's useful, then xcb-util is probably the sensible place to put it. Maarten. PS i'm not qualified to judge this code, just wanted to say something