added smfact for vanilla dwm.c