shell-util: Pass the mutter context to the spawn child setup function

This was the type the function expected, but we were actually passing
the global context to it.

This didn't crash for some reason, but indeed it was wrong and we didn't
catch it because mutter side had not type-checks either

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3355>
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-31 16:46:14 +02:00
parent 22a38c25f2
commit 9abad7f25f

View file

@ -873,7 +873,8 @@ shell_util_spawn_async_with_pipes_and_fds (const char *working_director
GPid child_pid = 0;
if (!g_spawn_async_with_pipes_and_fds (working_directory, argv, envp, flags,
spawn_child_setup, shell_global,
spawn_child_setup,
shell_global_get_context (shell_global),
stdin_fd, stdout_fd, stderr_fd,
source_fds, target_fds, n_fds,
&child_pid,