Fixed the orientation calculation;
reading the current split/orientation just resulted in a situation where
the split would change every time you re-focused a window. Now, the calculation
is done using the current window geometry