From 38da8293515a9769c945ce9e6f87ec1c2a03a043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 31 May 2024 16:46:14 +0200 Subject: [PATCH] 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: (cherry picked from commit 9abad7f25ff40072bed135a0d54e9f0b572ee0fd) --- src/shell-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shell-util.c b/src/shell-util.c index 311576c0e..9d1f24018 100644 --- a/src/shell-util.c +++ b/src/shell-util.c @@ -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,