[mutter] utils: Request a modal dialog when transient_for is set
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] utils: Request a modal dialog when transient_for is set
- Date: Wed, 19 Sep 2012 13:14:58 +0000 (UTC)
commit 7e1e9320bc77452661d33d00421ea751b68f86b0
Author: Florian MÃllner <fmuellner gnome org>
Date: Tue Sep 18 21:20:33 2012 +0200
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 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/core/util.c b/src/core/util.c
index 09be7f6..06d9ec8 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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]