mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 19:10:43 -05:00
utils: Request a modal dialog when transient_for is set
https://bugzilla.gnome.org/show_bug.cgi?id=684306
This commit is contained in:
parent
18a1ed6ec5
commit
7e1e9320bc
@ -640,15 +640,17 @@ meta_show_dialog (const char *type,
|
|||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_ptr_array_add (args, NULL); /* NULL-terminate */
|
|
||||||
|
|
||||||
if (transient_for)
|
if (transient_for)
|
||||||
{
|
{
|
||||||
gchar *env = g_strdup_printf("%d", transient_for);
|
gchar *env = g_strdup_printf("%d", transient_for);
|
||||||
setenv ("WINDOWID", env, 1);
|
setenv ("WINDOWID", env, 1);
|
||||||
g_free (env);
|
g_free (env);
|
||||||
|
|
||||||
|
append_argument (args, "--modal");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_ptr_array_add (args, NULL); /* NULL-terminate */
|
||||||
|
|
||||||
g_spawn_async (
|
g_spawn_async (
|
||||||
"/",
|
"/",
|
||||||
(gchar**) args->pdata,
|
(gchar**) args->pdata,
|
||||||
|
Loading…
Reference in New Issue
Block a user