This ensures the dialog gets a proper position before being shown.
On Wayland notification popups are animated by the morphing popup effect and would fly all over the screen when shown; now they only move around in the vicinity of their final position, looking really nice.