Wayland: Set XDG dialog modal in setMainWindow when applicable
Qt's built-in XDG Dialog support only works with in-process transient parents. It knows nothing about us setting a parent through XDG foreign afterwards.
Have setMainWindow check window modality and use XDG Dialog to make the parent-child relationship modal.
Save dialog in my browser is properly modal now