handle NetActiveWindow properly.  Thanks to Carlos Pita