We were failing to launch the uri if we are on
Wayland, but have no xdg_foreign protocol support.
Fixes: #5152
data->task = g_task_new (parent, cancellable, callback, user_data);
g_task_set_source_tag (data->task, gtk_show_uri);
- if (parent)
- gtk_window_export_handle (parent, window_handle_exported, data);
- else
+ if (!parent || !gtk_window_export_handle (parent, window_handle_exported, data))
window_handle_exported (parent, NULL, data);
}