Update status when pane selected with mouse, from Balazs Kezes.
Take account of window-status-separator when checking window position,
based on diff from Balazs Kezes.