Render menus to an off-screen pixmap rather than directly to the window.