Move bad focus check to xwm.c, where it belongs.