gtk: handle switch_surface(NULL) properly