Revert "Layout the window to be displayed"

This reverts commit 1c6c4a19b787a3375f120df8d521a698e470a1e2.

Change-Id: I0248674c8480d3e3221680dacf04a3528ac84300
Layout the config-changed window if it has surface

This patch fixes an issue which caused the resumed app to get the
wrong frame at first.

https://code.google.com/p/android/issues/detail?id=82242

Change-Id: I4483029326afca143e7921f3b9563da4f566d2e5