First horse is looking towards the camera... angle of the ears I think.
Second horse is looking away and to the right over the fence.... the fact that the other horse is there it is more probable they were saying hi to each other.
My idea anyway, the more I look the more confused I get!