Modified paint_all so that it doesn't draw off-screen windows, and doesn't