This moves X11 specific code to a better place, which allows us make item rendering code less platform specific and easier to change.