Weird window placement in Wayland

Why do application windows get thrown around to arbitrary positions on the screen? I observe this trait even with the dialogs. Google pointed me to some Wayland issues where the window manager developers seem to be blaming the application developers and vice versa.

This problem goes away when I switch to Xorg, so it does appear to be a Wayland issue. It would be nice if the windows remember their positions and dimensions. Is there something that can be done to fix this?