Merge branch 'fix-foreign-check' into 'main'

Fix xdg-foreign check

See merge request GNOME/gtk!6994
This commit is contained in:
Matthias Clasen 2024-03-08 14:20:50 +00:00
commit 34e9ef9e78

View File

@ -2707,7 +2707,7 @@ gdk_wayland_toplevel_set_transient_for_exported (GdkToplevel *toplevel,
g_return_val_if_fail (GDK_IS_WAYLAND_TOPLEVEL (toplevel), FALSE);
g_return_val_if_fail (GDK_IS_WAYLAND_DISPLAY (display), FALSE);
if (!display_wayland->xdg_importer)
if (!display_wayland->xdg_importer && !display_wayland->xdg_importer_v2)
{
g_warning ("Server is missing xdg_foreign support");
return FALSE;