The PID of an X11 window cannot change. This is a remnant from the days when we queried the PID with a window property, instead of using XRes.