I have been so happy getting back home until I realised...
if you use proper tense, your example you don't - than it isn't importnant what you say at the beginning of your sentence. you can start that 'you realised' and finish 'getting back'.
my example is proper but it isn't this particular tense I am talking about