Move window manager calculation to first touch

Change-Id: Ie413002262cabe8f119c356306fb32ecd0e68537