Fixed a bug where you could click on KSP's gui through DMP's

This sure was an annoying bug. Thanks to KMP for the original code.