[gnome-terminal] client: legacy: Implicitly opened tab should become active



commit 66803e347f023b6324b9af4b3da3be2a791e15bd
Author: Christian Persch <chpe src gnome org>
Date:   Sun Jan 5 23:03:20 2020 +0100

    client: legacy: Implicitly opened tab should become active

 src/terminal-options.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/terminal-options.c b/src/terminal-options.c
index 964a3139..d5bb5f24 100644
--- a/src/terminal-options.c
+++ b/src/terminal-options.c
@@ -231,6 +231,11 @@ add_new_window (TerminalOptions *options,
   apply_window_defaults (options, iw);
 
   it = initial_tab_new (profile);
+
+  /* If this is an implicit first window, the new tab should be active */
+  if (iw->implicit_first_window)
+    it->active = TRUE;
+
   iw->tabs = g_list_prepend (NULL, it);
   apply_tab_defaults (options, it);
 


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