From 239205033ccdd215c1fcc058be2c844ea03e4870 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 4 Sep 2016 17:17:45 +0100 Subject: Only bring the screen to the front if an active tab is being opened via re-launch --- frontends/amiga/gui.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'frontends/amiga') diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index e355d9f68..a530d62c2 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -1094,7 +1094,12 @@ static void gui_init2(int argc, char** argv) ami_arexx_self(sendcmd); FreeVec(sendcmd); - ami_arexx_self("TOFRONT"); + if((nsoption_bool(tab_new_session) == true) && (nsoption_bool(new_tab_is_active) == true)) { + /* If we're opening a new tab and that tab will be active, bring the screen to the front. + *\todo consider if we should be bringing the window to the front too. + * If we're opening a new window, Intuition brings the screen to the front anyway. */ + ami_arexx_self("TOFRONT"); + } ami_quit=true; return; -- cgit v1.2.3