This includes the fix for the broken dialog windows. The outsets will
only be calculated and applied if the window is full screen, since
they don't make much sense otherwise.
This reverts commit 4bb6b751fb.
Change-Id: I977a85a78c990c1840784dc0be0dddd5a6d84e6b