[gnome-terminal] server: Stay around a bit after last window closes



commit 3726a89e9ea44c118bf78cefd582e9d87c37c939
Author: Christian Persch <chpe gnome org>
Date:   Tue Jul 14 19:37:28 2015 +0200

    server: Stay around a bit after last window closes

 src/server.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/server.c b/src/server.c
index a467eac..af2706d 100644
--- a/src/server.c
+++ b/src/server.c
@@ -44,6 +44,8 @@
 
 static char *app_id = NULL;
 
+#define INACTIVITY_TIMEOUT (100 /* ms */)
+
 static gboolean
 option_app_id_cb (const gchar *option_name,
                     const gchar *value,
@@ -178,5 +180,8 @@ main (int argc, char **argv)
   app = terminal_app_new (app_id);
   g_free (app_id);
 
+  /* We stay around a bit after the last window closed */
+  g_application_set_inactivity_timeout (app, INACTIVITY_TIMEOUT);
+
   return g_application_run (app, 0, NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]