Changes the way we do window clearing and refreshing, and fixes a syntax issue in geom_test.cpp