Calculate expanded desktop state

Change-Id: I59708f8918df9d5997d2fc31e1a1704fd4487ab5