From 7e1e9320bc77452661d33d00421ea751b68f86b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 18 Sep 2012 21:20:33 +0200 Subject: [PATCH] utils: Request a modal dialog when transient_for is set https://bugzilla.gnome.org/show_bug.cgi?id=684306 --- src/core/util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/util.c b/src/core/util.c index 09be7f654..06d9ec89f 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -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,