utils: Request a modal dialog when transient_for is set

https://bugzilla.gnome.org/show_bug.cgi?id=684306
This commit is contained in:
Florian Müllner 2012-09-18 21:20:33 +02:00
parent 18a1ed6ec5
commit 7e1e9320bc

View File

@ -640,15 +640,17 @@ meta_show_dialog (const char *type,
tmp = tmp->next;
}
g_ptr_array_add (args, NULL); /* NULL-terminate */
if (transient_for)
{
gchar *env = g_strdup_printf("%d", transient_for);
setenv ("WINDOWID", env, 1);
g_free (env);
append_argument (args, "--modal");
}
g_ptr_array_add (args, NULL); /* NULL-terminate */
g_spawn_async (
"/",
(gchar**) args->pdata,