IS_HORIZ
(horiz || (IS_HORIZ(sp->layout->first) &&
!IS_HORIZ(sp->prev->layout->first))))
((IS_HORIZ(cp) &&
!IS_HORIZ(cpp)) ||
IS_HORIZ(cp->next) &&
!IS_HORIZ(cpp->next))))
!IS_HORIZ(cp->next))) ||
(horiz || (IS_HORIZ(sp->layout->last) &&
!IS_HORIZ(sp->prev->layout->last))))
if (horiz == 0 && (IS_HORIZ(sp->layout->last) == 0 ||