The current code only checks one coordinate, depending on the tab orientation. Fixes GNOME/nautilus#342