Cleanups.
Fix surface double buffering state.
Simplify repainting logic.
Compositor will now redraw constantly, however the logic is very easy to
change from now.