wayland: Add support for v2 of xdg_foreign protocol
This updates the xdg-foreign protocol to the v2 version, spec here: xdg-foreign-unstable-v2.xml. The v1 version is still supported as a fallback. The corresponding patch for Mutter is here: mutter!1043 (closed). Here are the test programs I'm using to verify this: xdg-foreign-test, portal-test.
This is backported from work that was done on gtk4 master, which is in this branch: cycloptic:gtk/xdg-foreign-v2. Should that be submitted as a separate MR?
Edited by Jeremy Bicha