Move window manager calculation to first touch

Change-Id: Ie413002262cabe8f119c356306fb32ecd0e68537
Merge remote-tracking branch 'sgt7/cm-10.1' into cm-10.1-sgt7