Made OSX windows do a better job of checking for overlapping windows when calling contains()