I'm also suing this, I think there is an option for xfwm to disable windows from taking (stealing) focus. Check the manual for XFWM4 under the hidden options for this as I don't remeber exactly how should this be done ;)