Much better window to screen pairing

Compare areas of intersections to determine which screen is in each
window instead of seeing if the center is within the bounds.