From: Y.C Cheng <yc.cheng@canonical.com>
Author: Y.C Cheng <yc.cheng@canonical.com>
Description: Center the first window.
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1071449
Forwarded: no

Center the first window, and let the origional code place others.
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -1696,6 +1696,7 @@
 {
   GList *lw;
   GdkScreen *gdk_screen;
+  static gboolean firstWindow = TRUE;
 
   gdk_screen = terminal_app_get_screen_by_display_name (options->display_name,
                                                         options->screen_number);
@@ -1766,6 +1767,12 @@
       /* Restored windows shouldn't demand attention; see bug #586308. */
       if (iw->source_tag == SOURCE_SESSION)
         terminal_window_set_is_restored (window);
+      else {
+        if (firstWindow) {
+          gtk_window_set_position (GTK_WINDOW(window), GTK_WIN_POS_CENTER);
+          firstWindow = FALSE;
+        }
+      }
 
       if (options->startup_id != NULL)
         gtk_window_set_startup_id (GTK_WINDOW (window), options->startup_id);
