window: Move placement code from the constraints path

This way, it's implemented as a special case in move_resize_internal,
which makes it a lot easier to manage.