Only force a resize when running a windowing system.