Re: He was sleeping/had been sleeping when...

Originally Posted by
rhapsomatrics
Watch out for these words:space"before",space"after",space"while",space"during",space"when"...they are time adverbs which agree are used (?) with past perfect or past perfect progressive verbs.
These words can be used with many tenses and aspects English. Here are some examples with past tense forms:
He changed before he left.
He left after I arrived.
She washed up while I was finishing my reports.
George looked unhappy when I told him the news.
In the original sentence, when is a conjunction.
During is a preposition.
.
Context is always important; labelling is rarely important.