Basic window behaves correctly